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

Unified Diff: cc/layer.h

Issue 11415089: ui/compositor: use cc/ directly instead of webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac 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
« no previous file with comments | « cc/cc.gyp ('k') | cc/layer_tiling_data.h » ('j') | cc/proxy.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer.h
diff --git a/cc/layer.h b/cc/layer.h
index 97bd200541ec2ccf95f1649e77c4da2721345839..005b9df8082096926b0189ad6ecedc07de167a21 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -185,8 +185,8 @@ public:
void setReplicaLayer(Layer*);
Layer* replicaLayer() const { return m_replicaLayer.get(); }
- bool hasMask() const { return m_maskLayer; }
- bool hasReplica() const { return m_replicaLayer; }
+ bool hasMask() const { return !!m_maskLayer; }
+ bool hasReplica() const { return !!m_replicaLayer; }
bool replicaHasMask() const { return m_replicaLayer && (m_maskLayer || m_replicaLayer->m_maskLayer); }
// These methods typically need to be overwritten by derived classes.
« no previous file with comments | « cc/cc.gyp ('k') | cc/layer_tiling_data.h » ('j') | cc/proxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698