summaryrefslogtreecommitdiffstats
path: root/cc/layers/picture_layer.h
diff options
context:
space:
mode:
authordanakj <danakj@chromium.org>2014-12-10 17:09:38 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-11 01:09:57 +0000
commita4ed6a25c69c34c986f36f01ecb5645babbdeed7 (patch)
treee57d606be9803d5aad68ba852c7fb83ea2c9281a /cc/layers/picture_layer.h
parent602289d4c714b77a44fd8694915b05650259012d (diff)
downloadchromium_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_layer.h')
-rw-r--r--cc/layers/picture_layer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h
index 01a37a3..04c5f8f 100644
--- a/cc/layers/picture_layer.h
+++ b/cc/layers/picture_layer.h
@@ -50,9 +50,12 @@ class CC_EXPORT PictureLayer : public Layer {
~PictureLayer() override;
bool HasDrawableContent() const override;
- bool UpdateCanUseLCDText();
+
+ bool is_mask() const { return is_mask_; }
private:
+ bool UpdateCanUseLCDText();
+
ContentLayerClient* client_;
scoped_ptr<RecordingSource> recording_source_;
devtools_instrumentation::