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

Unified Diff: remoting/client/display/canvas.h

Issue 2874143002: [CRD iOS] Some fixes for rendering (Closed)
Patch Set: Just use presentRenderbuffer to swap buffers Created 3 years, 7 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 | « remoting/client/desktop_viewport.cc ('k') | remoting/client/display/gl_canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/display/canvas.h
diff --git a/remoting/client/display/canvas.h b/remoting/client/display/canvas.h
index 988375bf6c6fe78abb224f4ba893b6960372b035..448368252938404dddad5915c92dba7ffb6926e4 100644
--- a/remoting/client/display/canvas.h
+++ b/remoting/client/display/canvas.h
@@ -37,7 +37,10 @@ class Canvas {
// offset of the upper-left corner in pixel.
virtual void SetTransformationMatrix(const std::array<float, 9>& matrix) = 0;
- // Sets the size of the view in pixels.
+ // Sets the size of the view in pixels such that it fills up the the whole
+ // viewport.
+ // Note that this only affects the transformation matrix. It doesn't affect
+ // how the viewport is rendered on the screen.
virtual void SetViewSize(int width, int height) = 0;
// Draws the texture on the canvas. Nothing will happen if
« no previous file with comments | « remoting/client/desktop_viewport.cc ('k') | remoting/client/display/gl_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698