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

Unified Diff: cc/picture_layer.cc

Issue 11639050: cc: Support mask layers in impl-side painting (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
« no previous file with comments | « cc/picture_layer.h ('k') | cc/picture_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer.cc
diff --git a/cc/picture_layer.cc b/cc/picture_layer.cc
index 241aff40dc3ca4eeaeb0db5e8d45d0f0cccaa2c3..d00f54b74e87e549a9d583bfe36cda9550f5c6cb 100644
--- a/cc/picture_layer.cc
+++ b/cc/picture_layer.cc
@@ -15,7 +15,8 @@ scoped_refptr<PictureLayer> PictureLayer::create(ContentLayerClient* client) {
}
PictureLayer::PictureLayer(ContentLayerClient* client) :
- client_(client) {
+ client_(client),
+ is_mask_(false) {
}
PictureLayer::~PictureLayer() {
@@ -33,6 +34,7 @@ void PictureLayer::pushPropertiesTo(LayerImpl* base_layer) {
Layer::pushPropertiesTo(base_layer);
PictureLayerImpl* layer_impl = static_cast<PictureLayerImpl*>(base_layer);
+ layer_impl->SetIsMask(is_mask_);
layer_impl->tilings_.SetLayerBounds(bounds());
layer_impl->invalidation_.Clear();
layer_impl->invalidation_.Swap(pile_invalidation_);
@@ -62,4 +64,8 @@ void PictureLayer::update(ResourceUpdateQueue&, const OcclusionTracker*,
pile_.Update(client_, pile_invalidation_, stats);
}
+void PictureLayer::setIsMask(bool is_mask) {
+ is_mask_ = is_mask;
+}
+
} // namespace cc
« no previous file with comments | « cc/picture_layer.h ('k') | cc/picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698