summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_picture_layer_impl.h
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-20 23:43:06 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-20 23:43:06 +0000
commit214c86977d4bc4aca359a93440be14829599fd10 (patch)
tree026ed03eab341d8fba3dc0508f4f59b0f1dad1a9 /cc/test/fake_picture_layer_impl.h
parent9eceee88a34f09756418e5925ec026a29d3c549d (diff)
downloadchromium_src-214c86977d4bc4aca359a93440be14829599fd10.zip
chromium_src-214c86977d4bc4aca359a93440be14829599fd10.tar.gz
chromium_src-214c86977d4bc4aca359a93440be14829599fd10.tar.bz2
cc: Don't require push properties for picture layers
PictureLayer now only needs push properties if its pile has changed. In order to make this possible, some of the non-pushing post-commit work had to be deferred so that every layer that got committed (even if it didn't get pushed) would go through it. This is lazily done with a boolean flag in PictureLayerImpl, with some DCHECKs for sanity about its state. As every layer on the pending tree that will get drawn will be CalcDrawEtc'd and get UpdateTilePriorities first, this seems a safe place to put this lazy check. This is a re-land of r214533 combined with r216218 and depends on the bugfix https://codereview.chromium.org/23295003/. R=danakj@chromium.org BUG=259402 Review URL: https://chromiumcodereview.appspot.com/23129009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218575 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_picture_layer_impl.h')
-rw-r--r--cc/test/fake_picture_layer_impl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cc/test/fake_picture_layer_impl.h b/cc/test/fake_picture_layer_impl.h
index a0c7829..2eeaeef 100644
--- a/cc/test/fake_picture_layer_impl.h
+++ b/cc/test/fake_picture_layer_impl.h
@@ -32,6 +32,14 @@ class FakePictureLayerImpl : public PictureLayerImpl {
using PictureLayerImpl::CleanUpTilingsOnActiveLayer;
using PictureLayerImpl::CanHaveTilings;
using PictureLayerImpl::MarkVisibleResourcesAsRequired;
+ using PictureLayerImpl::DoPostCommitInitializationIfNeeded;
+
+ bool needs_post_commit_initialization() const {
+ return needs_post_commit_initialization_;
+ }
+
+ bool is_using_lcd_text() const { return is_using_lcd_text_; }
+ void force_set_lcd_text(bool enabled) { is_using_lcd_text_ = enabled; }
PictureLayerTiling* HighResTiling() const;
PictureLayerTiling* LowResTiling() const;