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

Unified Diff: services/ui/ws/frame_generator.cc

Issue 2190633002: Add flag to launch two displays for mus+ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. Created 4 years, 5 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 | « services/ui/ws/display.cc ('k') | services/ui/ws/frame_generator_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/frame_generator.cc
diff --git a/services/ui/ws/frame_generator.cc b/services/ui/ws/frame_generator.cc
index c312d00565914bdd251d952f45ff19cea23c8c8a..81a29c86ed22f6edaa367f59bbc197b52f26304d 100644
--- a/services/ui/ws/frame_generator.cc
+++ b/services/ui/ws/frame_generator.cc
@@ -93,7 +93,7 @@ void FrameGenerator::DidDraw() {
cc::CompositorFrame FrameGenerator::GenerateCompositorFrame() {
const ViewportMetrics& metrics = delegate_->GetViewportMetrics();
std::unique_ptr<cc::RenderPass> render_pass = cc::RenderPass::Create();
- gfx::Rect output_rect(metrics.size_in_pixels);
+ gfx::Rect output_rect = metrics.bounds;
dirty_rect_.Intersect(output_rect);
const cc::RenderPassId render_pass_id(1, 1);
render_pass->SetNew(render_pass_id, output_rect, dirty_rect_,
« no previous file with comments | « services/ui/ws/display.cc ('k') | services/ui/ws/frame_generator_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698