Note: This precedes another CL that needs this change. DebugAnnotator uses a global variable. The test runner doesn't change state between testing different back-ends. This works-around the problem by setting the global variable when the context is switched. Because the GL back-end doesn't have its own DebugAnnotator sub-class, add a Display* to DisplayImpl::makeCurrent(), so that DisplayGL::makeCurrent() can install the front-end-Display's DebugAnnotator. Note: the Vulkan back-end gets this fix even though the new DebugAnnotatorVk class will be added in a follow-on CL. Bug: b/162068318 Bug: b/169243237 Bug: angleproject:5121 Change-Id: I748e8a1fd09b72e07242ac7fb39154537dcce534 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2444095Reviewed-by:Ian Elliott <ianelliott@google.com> Reviewed-by:
Jamie Madill <jmadill@chromium.org> Reviewed-by:
Courtney Goeltzenleuchter <courtneygo@google.com> Commit-Queue: Ian Elliott <ianelliott@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| ContextCGL.cpp | Loading commit data... | |
| ContextCGL.h | Loading commit data... | |
| DeviceCGL.cpp | Loading commit data... | |
| DeviceCGL.h | Loading commit data... | |
| DisplayCGL.h | Loading commit data... | |
| DisplayCGL.mm | Loading commit data... | |
| IOSurfaceSurfaceCGL.cpp | Loading commit data... | |
| IOSurfaceSurfaceCGL.h | Loading commit data... | |
| PbufferSurfaceCGL.cpp | Loading commit data... | |
| PbufferSurfaceCGL.h | Loading commit data... | |
| RendererCGL.cpp | Loading commit data... | |
| RendererCGL.h | Loading commit data... | |
| WindowSurfaceCGL.h | Loading commit data... | |
| WindowSurfaceCGL.mm | Loading commit data... |