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

Unified Diff: cc/layer.h

Issue 11316171: Don't create render passes for transparent images. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing code reviews. Created 8 years, 1 month 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 67f3932912f5e45698b13391f9628454452a33fd..f8506500ca7a6f144c45d5b4dcc847d35f7cb569 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -267,8 +267,10 @@ public:
void setBoundsContainPageScale(bool);
bool boundsContainPageScale() const { return m_boundsContainPageScale; }
- // Returns true if any of the layer's descendants has content to draw.
- bool descendantDrawsContent();
+ // 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();
LayerTreeHost* layerTreeHost() const { return m_layerTreeHost; }

Powered by Google App Engine
This is Rietveld 408576698