diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-16 01:11:59 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-16 01:11:59 +0000 |
commit | 445881fc82b07579b311c31b4aa28713db270163 (patch) | |
tree | bb5f3220190662a733a993591e416835adb75275 /cc/trees/layer_tree_settings.cc | |
parent | f395836748334521dd3bcc306bbf4b7044ff0d4c (diff) | |
download | chromium_src-445881fc82b07579b311c31b4aa28713db270163.zip chromium_src-445881fc82b07579b311c31b4aa28713db270163.tar.gz chromium_src-445881fc82b07579b311c31b4aa28713db270163.tar.bz2 |
cc: Add strict layer property change checking and handle bounds changes during paint.
This fixes a problem where paint would cause layer bounds to change
and Layer::PushProperties to push an non-empty picture layer without
a recording to the impl side.
This also adds a new command line switch that make layer property
changes during paint cause a CHECK() to fail. This can be used
to diagnose situations where paint is incorrectly causing layer
properties to change.
BUG=229179
TEST=cc_unittests --gtest_filter=LayerTreeHostTestChangeLayerPropertiesInPaintContents.RunSingleThread
Review URL: https://codereview.chromium.org/13939005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees/layer_tree_settings.cc')
-rw-r--r-- | cc/trees/layer_tree_settings.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/trees/layer_tree_settings.cc b/cc/trees/layer_tree_settings.cc index 8353bcb..8751577 100644 --- a/cc/trees/layer_tree_settings.cc +++ b/cc/trees/layer_tree_settings.cc @@ -52,7 +52,8 @@ LayerTreeSettings::LayerTreeSettings() // At 256x256 tiles, 128 tiles cover an area of 2048x4096 pixels. max_tiles_for_interest_area(128), max_unused_resource_memory_percentage(100), - highp_threshold_min(0) { + highp_threshold_min(0), + strict_layer_property_change_checking(false) { // TODO(danakj): Renable surface caching when we can do it more realiably. // crbug.com/170713 cache_render_pass_contents = false; |