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

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: 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
Index: services/ui/ws/frame_generator.cc
diff --git a/services/ui/ws/frame_generator.cc b/services/ui/ws/frame_generator.cc
index 99c87813f5dced11dc6727a83c2c717689067eea..a6edba5af0200a676e33f7b84a669e2ea90cd06e 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_,

Powered by Google App Engine
This is Rietveld 408576698