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

Unified Diff: cc/output/gl_renderer.cc

Issue 2399713003: cc: Replace viewport/clip rect with a viewport size for DirectRenderer (Closed)
Patch Set: 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 | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index f4f2b96502da1a92fc7136b33f3af23e3f40d45a..edae647fa8d993ef4b101902ad311f0e5c7bf241 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -3884,7 +3884,7 @@ void GLRenderer::CopyRenderPassDrawQuadToOverlayResource(
// requires creating a dummy DrawingFrame.
{
DrawingFrame frame;
- gfx::Rect frame_rect = external_frame->device_viewport_rect;
+ gfx::Rect frame_rect(external_frame->device_viewport_size);
force_drawing_frame_framebuffer_unflipped_ = true;
InitializeViewport(&frame, frame_rect, frame_rect, frame_rect.size());
force_drawing_frame_framebuffer_unflipped_ = false;
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698