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

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

Issue 2718523002: FrameGenerator: Don't issue BeginFrames if we have nothing to draw (Closed)
Patch Set: Created 3 years, 10 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 | no next file » | 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 505ad37dbead465d23c0811143bf8ec4efdf67b0..6ec02bbdd713bde24a0c3ff89d3416a6d12a23e1 100644
--- a/services/ui/ws/frame_generator.cc
+++ b/services/ui/ws/frame_generator.cc
@@ -43,7 +43,8 @@ void FrameGenerator::SetDeviceScaleFactor(float device_scale_factor) {
if (device_scale_factor_ == device_scale_factor)
return;
device_scale_factor_ = device_scale_factor;
- compositor_frame_sink_->SetNeedsBeginFrame(true);
+ if (window_manager_surface_info_.id().is_valid())
+ compositor_frame_sink_->SetNeedsBeginFrame(true);
}
void FrameGenerator::OnSurfaceCreated(const cc::SurfaceInfo& surface_info) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698