Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: ui/gl/gl_surface.cc

Issue 1477593002: gpu: Initial implementation of CommitOverlayPlanes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-cop-command
Patch Set: Remove NativeViewGLSurfaceEGL changes Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_surface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « ui/gl/gl_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698