• Show log

    Commit

  • Hash : 3545ae0c
    Author : Igor Nazarov
    Date : 2023-06-09T16:11:47

    Add isContextMutexStateConsistent() ASSERT
    
    Added `gl::Context::isContextMutexStateConsistent()` method. This method
    is primarily used to check if "SharedContextMutex" activation worked
    successfully. It is automatically called in the updated
    `ScopedContextMutexLock` before unlocking. This is to catch possible
    errors using ASSERT during normal ANGLE operation in applications and
    tests.
    
    The `ScopedContextMutexLock` is now also used instead of the
    `std::lock_guard<egl::ContextMutex>` in the `SCOPED_SHARE_CONTEXT_LOCK`.
    No performance regression observed.
    
    Important note: `lockAndActivateSharedContextMutex()` is NOT 100% safe
    regardless of the `kActivationDelayMicro` value, so `ASSERT` may still
    fail. However,  failure does not necessary mean that there will be an
    undefined behavior, it means that UB might happen.
    
    Bug: angleproject:6957
    Bug: chromium:1336126
    Change-Id: Iee7357fede0d37fa315fe2cc7d27a4e30a304194
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4610227
    Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: Geoff Lang <geofflang@chromium.org>
    Commit-Queue: Igor Nazarov <i.nazarov@samsung.com>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/angle.git
    Git SSH git@git.kmx.io:kc3-lang/angle.git
    Public access ? public
    Description

    A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.

    Homepage

    Github

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags