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

Unified Diff: cc/surfaces/surface_factory.cc

Issue 2651843002: FrameGenerator should receive SurfaceInfo and use it in frame generation (Closed)
Patch Set: c Created 3 years, 11 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 | « no previous file | cc/surfaces/surface_factory_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_factory.cc
diff --git a/cc/surfaces/surface_factory.cc b/cc/surfaces/surface_factory.cc
index 8a859f66f277744c60564312909d08e7f588cf97..f5746325790bd4b390dfe9b936c37d1f5775de5f 100644
--- a/cc/surfaces/surface_factory.cc
+++ b/cc/surfaces/surface_factory.cc
@@ -67,7 +67,7 @@ void SurfaceFactory::SubmitCompositorFrame(const LocalFrameId& local_frame_id,
gfx::Size frame_size;
// CompositorFrames may not be populated with a RenderPass in unit tests.
if (!frame.render_pass_list.empty())
- frame_size = frame.render_pass_list[0]->output_rect.size();
+ frame_size = frame.render_pass_list.back()->output_rect.size();
manager_->SurfaceCreated(SurfaceInfo(
surface->surface_id(), frame.metadata.device_scale_factor, frame_size));
}
« no previous file with comments | « no previous file | cc/surfaces/surface_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698