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

Unified Diff: ui/gl/gl_surface.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.h ('k') | ui/gl/gl_surface_stub.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 c0ac7f013cd4fcdc09ec0ccbb6eab08a0e89d226..9bddfd3314750e54154574eda5581a668a0d7dfc 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -176,6 +176,10 @@ bool GLSurface::SetDrawRectangle(const gfx::Rect& rect) {
return false;
}
+gfx::Vector2d GLSurface::GetDrawOffset() const {
+ return gfx::Vector2d();
+}
+
GLSurface* GLSurface::GetCurrent() {
return current_surface_.Pointer()->Get();
}
@@ -365,6 +369,10 @@ bool GLSurfaceAdapter::SetDrawRectangle(const gfx::Rect& rect) {
return surface_->SetDrawRectangle(rect);
}
+gfx::Vector2d GLSurfaceAdapter::GetDrawOffset() const {
+ return surface_->GetDrawOffset();
+}
+
void GLSurfaceAdapter::OnSetSwapInterval(int interval) {
surface_->OnSetSwapInterval(interval);
}
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698