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

Unified Diff: cc/layers/layer_impl.cc

Issue 265883013: cc: Add a flag to layers that returns true if the layer is in RSLL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 855f43dc7b98a73ce724b17d0368310d9495f9cd..cb43afabaf939872322367f9dae7f587fa9fd7dc 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -1502,6 +1502,11 @@ void LayerImpl::AsValueInto(base::DictionaryValue* state) const {
}
}
+bool LayerImpl::is_render_surface_list_member() const {
+ return draw_properties_.last_valid_render_surface_list_count ==
+ layer_tree_impl_->CurrentDrawPropertiesCount();
+}
+
size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; }
scoped_ptr<base::Value> LayerImpl::AsValue() const {

Powered by Google App Engine
This is Rietveld 408576698