diff options
author | danakj <danakj@chromium.org> | 2014-12-10 17:09:38 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-11 01:09:57 +0000 |
commit | a4ed6a25c69c34c986f36f01ecb5645babbdeed7 (patch) | |
tree | e57d606be9803d5aad68ba852c7fb83ea2c9281a /cc/layers/picture_image_layer_impl.h | |
parent | 602289d4c714b77a44fd8694915b05650259012d (diff) | |
download | chromium_src-a4ed6a25c69c34c986f36f01ecb5645babbdeed7.zip chromium_src-a4ed6a25c69c34c986f36f01ecb5645babbdeed7.tar.gz chromium_src-a4ed6a25c69c34c986f36f01ecb5645babbdeed7.tar.bz2 |
cc: Don't swap PictureLayerTilingSet on activate.
When activating, create new tilings on the active tree and make new
shared tiles. This way we don't have tilings on the recycle tree from
two frames ago, and the path which data travels is much more clear.
BUG=387116
Review URL: https://codereview.chromium.org/640063010
Cr-Commit-Position: refs/heads/master@{#307816}
Diffstat (limited to 'cc/layers/picture_image_layer_impl.h')
-rw-r--r-- | cc/layers/picture_image_layer_impl.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cc/layers/picture_image_layer_impl.h b/cc/layers/picture_image_layer_impl.h index 7a363a1..f478951 100644 --- a/cc/layers/picture_image_layer_impl.h +++ b/cc/layers/picture_image_layer_impl.h @@ -12,8 +12,9 @@ namespace cc { class CC_EXPORT PictureImageLayerImpl : public PictureLayerImpl { public: static scoped_ptr<PictureImageLayerImpl> Create(LayerTreeImpl* tree_impl, - int id) { - return make_scoped_ptr(new PictureImageLayerImpl(tree_impl, id)); + int id, + bool is_mask) { + return make_scoped_ptr(new PictureImageLayerImpl(tree_impl, id, is_mask)); } ~PictureImageLayerImpl() override; @@ -22,7 +23,7 @@ class CC_EXPORT PictureImageLayerImpl : public PictureLayerImpl { scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; protected: - PictureImageLayerImpl(LayerTreeImpl* tree_impl, int id); + PictureImageLayerImpl(LayerTreeImpl* tree_impl, int id, bool is_mask); bool ShouldAdjustRasterScale() const override; void RecalculateRasterScales() override; |