summaryrefslogtreecommitdiffstats
path: root/views/layer_helper.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-28 03:46:08 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-28 03:46:08 +0000
commit536987c84afc25114a63d61c5ae1868d60226216 (patch)
treef47b2b8fbb37fbde6554f076f5240e23cd3ddbf5 /views/layer_helper.cc
parent592a310996c99be24381de7aa05f347c12f20155 (diff)
downloadchromium_src-536987c84afc25114a63d61c5ae1868d60226216.zip
chromium_src-536987c84afc25114a63d61c5ae1868d60226216.tar.gz
chromium_src-536987c84afc25114a63d61c5ae1868d60226216.tar.bz2
Makes it so that if the size of a view with a layer changes or on creating
the layer we force the complete bounds to be painted. This way the Compositors don't have to worry about partial update of a size they've never seen. This matches old logic I removed thinking it was no longer needed. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/7272013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/layer_helper.cc')
-rw-r--r--views/layer_helper.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/layer_helper.cc b/views/layer_helper.cc
index e6b03ce..46cf791 100644
--- a/views/layer_helper.cc
+++ b/views/layer_helper.cc
@@ -16,7 +16,8 @@ LayerHelper::LayerHelper()
: bitmap_needs_updating_(true),
layer_updated_externally_(false),
paint_to_layer_(false),
- property_setter_explicitly_set_(false) {
+ property_setter_explicitly_set_(false),
+ needs_paint_all_(true) {
}
LayerHelper::~LayerHelper() {