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

Unified Diff: ui/gl/gl_surface_stub.cc

Issue 2735853002: Offset scissor and viewport when using SetDrawRectangle on surface. (Closed)
Patch Set: remove flag Created 3 years, 9 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_stub.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_stub.cc
diff --git a/ui/gl/gl_surface_stub.cc b/ui/gl/gl_surface_stub.cc
index 91cfbb27fb9d04297777aa168f2cc54bd1bce9e2..857a4ef8cf418646c217853f2b9b745811dcde7a 100644
--- a/ui/gl/gl_surface_stub.cc
+++ b/ui/gl/gl_surface_stub.cc
@@ -39,6 +39,14 @@ GLSurfaceFormat GLSurfaceStub::GetFormat() {
return GLSurfaceFormat();
}
+bool GLSurfaceStub::SupportsSetDrawRectangle() const {
+ return supports_draw_rectangle_;
+}
+
+gfx::Vector2d GLSurfaceStub::GetDrawOffset() const {
+ return supports_draw_rectangle_ ? gfx::Vector2d(100, 200) : gfx::Vector2d();
+}
+
GLSurfaceStub::~GLSurfaceStub() {}
} // namespace gl
« no previous file with comments | « ui/gl/gl_surface_stub.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698