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

Unified Diff: cc/layer.h

Issue 11419284: Move second internal recursion to a precomputation in layer_tree_host_common.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/layer.h
diff --git a/cc/layer.h b/cc/layer.h
index f8506500ca7a6f144c45d5b4dcc847d35f7cb569..a5d9d7e5e0b27114db97dd701dab7bc49bb61fe8 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -267,10 +267,9 @@ public:
void setBoundsContainPageScale(bool);
bool boundsContainPageScale() const { return m_boundsContainPageScale; }
- // Returns 0 if none of the layer's descendants has content to draw,
- // 1 if exactly one descendant has content to draw, or a number >1
- // (but necessary the exact number of descendants) otherwise.
- int descendantsDrawContent();
+ // This value does not consider the layer itself, only its descendants.
+ virtual int numDescendantsThatDrawContent() { return m_numDescendantsThatDrawContent; }
+ void setNumDescendantsThatDrawContent(int num) { m_numDescendantsThatDrawContent = num; }
LayerTreeHost* layerTreeHost() const { return m_layerTreeHost; }
@@ -417,6 +416,7 @@ private:
float m_rasterScale;
bool m_automaticallyComputeRasterScale;
bool m_boundsContainPageScale;
+ bool m_numDescendantsThatDrawContent;
slavi 2012/12/03 21:33:42 That should be an int.
gfx::Transform m_implTransform;
« no previous file with comments | « cc/delegated_renderer_layer_impl.cc ('k') | cc/layer.cc » ('j') | cc/layer_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698