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

Unified Diff: cc/layers/layer_impl.h

Issue 2899403003: cc: Give non-drawing layers that are rasterized a lower priority. (Closed)
Patch Set: type Created 3 years, 7 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 | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index c32c208ff13c6c885098244610ff9c81026912a0..10474cfd8d07a9c8298512692aecba3bfca83115 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -440,12 +440,10 @@ class CC_EXPORT LayerImpl {
void set_needs_show_scrollbars(bool yes) { needs_show_scrollbars_ = yes; }
bool needs_show_scrollbars() { return needs_show_scrollbars_; }
- void set_raster_even_if_not_in_rsll(bool yes) {
- raster_even_if_not_in_rsll_ = yes;
- }
- bool raster_even_if_not_in_rsll() const {
- return raster_even_if_not_in_rsll_;
+ void set_raster_even_if_not_drawn(bool yes) {
+ raster_even_if_not_drawn_ = yes;
}
+ bool raster_even_if_not_drawn() const { return raster_even_if_not_drawn_; }
protected:
LayerImpl(LayerTreeImpl* layer_impl,
@@ -564,7 +562,11 @@ class CC_EXPORT LayerImpl {
// layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation.
bool needs_show_scrollbars_ : 1;
- bool raster_even_if_not_in_rsll_ : 1;
+ // This is set for layers that have a property because of which they are not
+ // drawn (singular transforms), but they can become visible soon (the property
+ // is being animated). For this reason, while these layers are not drawn, they
+ // are still rasterized.
+ bool raster_even_if_not_drawn_ : 1;
DISALLOW_COPY_AND_ASSIGN(LayerImpl);
};
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698