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

Unified Diff: cc/trees/layer_tree_impl.h

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/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index ff912a4b9bb0d17d0a9e38c681cbbfdf9b3eedd4..ba9853b3ed490f626d880a1c6d2f97b1254f9c35 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -243,6 +243,10 @@ class CC_EXPORT LayerTreeImpl {
void RemoveLayerWithCopyOutputRequest(LayerImpl* layer);
const std::vector<LayerImpl*>& LayersWithCopyOutputRequest() const;
+ int CurrentDrawPropertiesCount() const {
danakj 2014/05/05 19:25:41 calculate_draw_properties_count() since it's an in
enne (OOO) 2014/05/05 20:13:34 (This is optional style and is totally ok as-is.)
vmpstr 2014/05/05 20:50:34 Done.
+ return calculate_draw_properties_count_;
+ }
+
protected:
explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl);
@@ -296,6 +300,8 @@ class CC_EXPORT LayerTreeImpl {
UIResourceRequestQueue ui_resource_request_queue_;
+ int calculate_draw_properties_count_;
+
private:
DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
};

Powered by Google App Engine
This is Rietveld 408576698