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

Unified Diff: ui/accelerated_widget_mac/ca_layer_tree_coordinator.h

Issue 2479723003: Mac: Fix flickering while entering/leaving fullscreen low power video (Closed)
Patch Set: Created 4 years, 1 month 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: ui/accelerated_widget_mac/ca_layer_tree_coordinator.h
diff --git a/ui/accelerated_widget_mac/ca_layer_tree_coordinator.h b/ui/accelerated_widget_mac/ca_layer_tree_coordinator.h
index 5a3e17943f5ab4e51c5abab1195c32490ea32b34..2602c252273cc7d6245fb0f30e730b5b4ae14df7 100644
--- a/ui/accelerated_widget_mac/ca_layer_tree_coordinator.h
+++ b/ui/accelerated_widget_mac/ca_layer_tree_coordinator.h
@@ -73,7 +73,10 @@ class ACCELERATED_WIDGET_MAC_EXPORT CALayerTreeCoordinator {
// Frame that is currently being displayed on the screen.
std::unique_ptr<GLRendererLayerTree> current_gl_renderer_layer_tree_;
std::unique_ptr<CARendererLayerTree> current_ca_renderer_layer_tree_;
- bool current_fullscreen_low_power_layer_valid_ = false;
+
+ // The number of frames since we used the low power layer. Used to avoid
+ // flashes during transitions between windows.
+ uint64_t frames_since_low_power_layer_was_valid_ = 0;
DISALLOW_COPY_AND_ASSIGN(CALayerTreeCoordinator);
};

Powered by Google App Engine
This is Rietveld 408576698