summaryrefslogtreecommitdiffstats
path: root/cc/layers/picture_layer.h
diff options
context:
space:
mode:
authorvmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-19 01:48:25 +0000
committervmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-19 01:48:25 +0000
commit78ad45541eb6dfadd0edbaff2a3d8f173ad21f2a (patch)
treee6bfdaa0b3e3aa5eb038384f995fb05f86e473cc /cc/layers/picture_layer.h
parent252873a1192cee6953076ab32e0f71a9023d0b52 (diff)
downloadchromium_src-78ad45541eb6dfadd0edbaff2a3d8f173ad21f2a.zip
chromium_src-78ad45541eb6dfadd0edbaff2a3d8f173ad21f2a.tar.gz
chromium_src-78ad45541eb6dfadd0edbaff2a3d8f173ad21f2a.tar.bz2
cc: Use simplified region for pending invalidation.
Our invalidation regions can get very large in terms of the number of containing rects, so unioning two of these regions causes a crash (out of memory) on certain heavy pages. Using a simplified region helps both performance in terms of time and in terms of memory. BUG=260626 Review URL: https://chromiumcodereview.appspot.com/19395002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212494 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/picture_layer.h')
-rw-r--r--cc/layers/picture_layer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h
index 7264a2f..313da87 100644
--- a/cc/layers/picture_layer.h
+++ b/cc/layers/picture_layer.h
@@ -5,6 +5,7 @@
#ifndef CC_LAYERS_PICTURE_LAYER_H_
#define CC_LAYERS_PICTURE_LAYER_H_
+#include "cc/base/invalidation_region.h"
#include "cc/debug/devtools_instrumentation.h"
#include "cc/layers/contents_scaling_layer.h"
#include "cc/layers/layer.h"
@@ -45,7 +46,7 @@ class CC_EXPORT PictureLayer : public ContentsScalingLayer {
devtools_instrumentation::
ScopedLayerObjectTracker instrumentation_object_tracker_;
// Invalidation to use the next time update is called.
- Region pending_invalidation_;
+ InvalidationRegion pending_invalidation_;
// Invalidation from the last time update was called.
Region pile_invalidation_;
bool is_mask_;