Index: ui/gl/gl_surface.cc |
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc |
index 79f39f744422f9a810e46b92bb6057be22dd2954..9c25ff07d6380d380588cb022c86d2920a33affe 100644 |
--- a/ui/gl/gl_surface.cc |
+++ b/ui/gl/gl_surface.cc |
@@ -117,6 +117,10 @@ bool GLSurface::SupportsPostSubBuffer() { |
return false; |
} |
+bool GLSurface::SupportsCommitOverlayPlanes() { |
+ return false; |
+} |
+ |
bool GLSurface::SupportsAsyncSwap() { |
return false; |
} |
@@ -141,6 +145,16 @@ void GLSurface::PostSubBufferAsync(int x, |
NOTREACHED(); |
} |
+gfx::SwapResult GLSurface::CommitOverlayPlanes() { |
+ NOTREACHED(); |
+ return gfx::SwapResult::SWAP_FAILED; |
+} |
+ |
+void GLSurface::CommitOverlayPlanesAsync( |
+ const SwapCompletionCallback& callback) { |
+ NOTREACHED(); |
+} |
+ |
bool GLSurface::OnMakeCurrent(GLContext* context) { |
return true; |
} |
@@ -282,10 +296,23 @@ void GLSurfaceAdapter::PostSubBufferAsync( |
surface_->PostSubBufferAsync(x, y, width, height, callback); |
} |
+gfx::SwapResult GLSurfaceAdapter::CommitOverlayPlanes() { |
+ return surface_->CommitOverlayPlanes(); |
+} |
+ |
+void GLSurfaceAdapter::CommitOverlayPlanesAsync( |
+ const SwapCompletionCallback& callback) { |
+ surface_->CommitOverlayPlanesAsync(callback); |
+} |
+ |
bool GLSurfaceAdapter::SupportsPostSubBuffer() { |
return surface_->SupportsPostSubBuffer(); |
} |
+bool GLSurfaceAdapter::SupportsCommitOverlayPlanes() { |
+ return surface_->SupportsCommitOverlayPlanes(); |
+} |
+ |
bool GLSurfaceAdapter::SupportsAsyncSwap() { |
return surface_->SupportsAsyncSwap(); |
} |