diff options
Diffstat (limited to 'chromium/ui/gl/gl_surface.cc')
-rw-r--r-- | chromium/ui/gl/gl_surface.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chromium/ui/gl/gl_surface.cc b/chromium/ui/gl/gl_surface.cc index f89a699c807..67671902974 100644 --- a/chromium/ui/gl/gl_surface.cc +++ b/chromium/ui/gl/gl_surface.cc @@ -194,6 +194,12 @@ void GLSurface::WaitForSnapshotRendering() { // By default, just executing the SwapBuffers is normally enough. } +void GLSurface::SetRelyOnImplicitSync() { + // Some GLSurface derived classes might not implement this workaround while + // still being allocated on devices where the workaround is enabled. + // It is fine to ignore this call in those cases. +} + GLSurface* GLSurface::GetCurrent() { return current_surface_.Pointer()->Get(); } @@ -397,6 +403,10 @@ void GLSurfaceAdapter::WaitForSnapshotRendering() { surface_->WaitForSnapshotRendering(); } +void GLSurfaceAdapter::SetRelyOnImplicitSync() { + surface_->SetRelyOnImplicitSync(); +} + GLSurfaceAdapter::~GLSurfaceAdapter() {} scoped_refptr<GLSurface> InitializeGLSurfaceWithFormat( |