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

Unified Diff: ui/compositor/layer.h

Issue 1588093004: Compute if a layer is drawn without LayerTree hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 143a4e7d08c2b1121881788e22a40184cd91e4bf..45efd2a22b8d7cd89cd1dfb5d5a4db5c9cb999dc 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -514,6 +514,10 @@ class COMPOSITOR_EXPORT Layer
// A cached copy of |Compositor::device_scale_factor()|.
float device_scale_factor_;
+ // When a layer become invisible, we make the corresponding cc_layer
+ // transparent (opacity = 0) and cache its actual opacity value. This is used
+ // to set it back when the layer becomes visible.
+ float cached_cc_layer_opacity_;
// A cached copy of the nine patch layer's image and aperture.
// These are required for device scale factor change.

Powered by Google App Engine
This is Rietveld 408576698