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

Unified Diff: ui/gfx/gl/gl_surface.cc

Issue 8513013: Plumb the partial swap though image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with a few compile fixes (tested Win, Mac, Linux, and Aura) Created 9 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/gfx/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/gfx/gl/gl_surface.cc
diff --git a/ui/gfx/gl/gl_surface.cc b/ui/gfx/gl/gl_surface.cc
index 9276d00d6d061a814d64ac3dd5b749e1d9cab7c6..832925578d98c1bcec349ed03782fea4fc43dcf0 100644
--- a/ui/gfx/gl/gl_surface.cc
+++ b/ui/gfx/gl/gl_surface.cc
@@ -91,7 +91,9 @@ bool GLSurface::Resize(const gfx::Size& size) {
}
std::string GLSurface::GetExtensions() {
- DCHECK_EQ(GetCurrent(), this);
+ // Use of GLSurfaceAdapter class means that we can't compare
+ // GetCurrent() and this directly.
+ DCHECK_EQ(GetCurrent()->GetHandle(), GetHandle());
return std::string("");
}
@@ -164,6 +166,14 @@ bool GLSurfaceAdapter::SwapBuffers() {
return surface_->SwapBuffers();
}
+bool GLSurfaceAdapter::PostSubBuffer(int x, int y, int width, int height) {
+ return surface_->PostSubBuffer(x, y, width, height);
+}
+
+std::string GLSurfaceAdapter::GetExtensions() {
+ return surface_->GetExtensions();
+}
+
gfx::Size GLSurfaceAdapter::GetSize() {
return surface_->GetSize();
}
« no previous file with comments | « ui/gfx/gl/gl_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698