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

Unified Diff: cc/layers/layer_impl.h

Issue 1609923002: Fix remaining incompatibilities between scoped_ptr and unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 48e9529f3d37a21087bf325dd567c92cd0efbc48..c9cfc3e62cc75816b33d92d77ef775145239b6ea 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -244,8 +244,8 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
const LayerImpl* replica_layer() const { return replica_layer_.get(); }
scoped_ptr<LayerImpl> TakeReplicaLayer();
- bool has_mask() const { return mask_layer_; }
- bool has_replica() const { return replica_layer_; }
+ bool has_mask() const { return !!mask_layer_; }
+ bool has_replica() const { return !!replica_layer_; }
bool replica_has_mask() const {
return replica_layer_ && (mask_layer_ || replica_layer_->mask_layer_);
}

Powered by Google App Engine
This is Rietveld 408576698