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

Unified Diff: ui/gl/gl_surface.cc

Issue 2443023002: gpu: Add CHROMIUM_copy_image extension.
Patch Set: rebase Created 4 years, 2 months 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') | ui/gl/gl_surface_egl.h » ('j') | 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 7fcb093c9f6434d524d5f4d41f9b90f87c68b546..6ddb5c91db6759d11af669847c2fb3939085eaa5 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -203,6 +203,14 @@ bool GLSurface::ExtensionsContain(const char* c_extensions, const char* name) {
void GLSurface::OnSetSwapInterval(int interval) {
}
+bool GLSurface::SupportsInsertFence() {
+ return false;
+}
+
+void GLSurface::InsertFence(const base::Closure& callback) {
+ NOTREACHED();
+}
+
GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {}
bool GLSurfaceAdapter::Initialize(GLSurface::Format format) {
@@ -357,6 +365,14 @@ bool GLSurfaceAdapter::BuffersFlipped() const {
return surface_->BuffersFlipped();
}
+bool GLSurfaceAdapter::SupportsInsertFence() {
+ return surface_->SupportsInsertFence();
+}
+
+void GLSurfaceAdapter::InsertFence(const base::Closure& callback) {
+ return surface_->InsertFence(callback);
+}
+
GLSurfaceAdapter::~GLSurfaceAdapter() {}
scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) {
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698