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

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

Issue 2434923002: Handle modified displays in mustash. (Closed)
Patch Set: Fixes after initial review. 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
Index: services/ui/ws/frame_generator.cc
diff --git a/services/ui/ws/frame_generator.cc b/services/ui/ws/frame_generator.cc
index cbed7bdf88139623ba7c64fe257d8e8d2ac2c2fd..8682a00bb3d24da14d415c8ef04bfc6f06a2db6f 100644
--- a/services/ui/ws/frame_generator.cc
+++ b/services/ui/ws/frame_generator.cc
@@ -88,8 +88,7 @@ void FrameGenerator::Draw() {
if (!delegate_->GetRootWindow()->visible())
return;
- const ViewportMetrics& metrics = delegate_->GetViewportMetrics();
- const gfx::Rect output_rect(metrics.pixel_size);
+ const gfx::Rect output_rect(delegate_->GetViewportMetrics().pixel_size);
dirty_rect_.Intersect(output_rect);
// TODO(fsamuel): We should add a trace for generating a top level frame.
cc::CompositorFrame frame(GenerateCompositorFrame(output_rect));

Powered by Google App Engine
This is Rietveld 408576698