diff options
author | vmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-19 01:48:25 +0000 |
---|---|---|
committer | vmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-19 01:48:25 +0000 |
commit | 78ad45541eb6dfadd0edbaff2a3d8f173ad21f2a (patch) | |
tree | e6bfdaa0b3e3aa5eb038384f995fb05f86e473cc /cc/base/region.h | |
parent | 252873a1192cee6953076ab32e0f71a9023d0b52 (diff) | |
download | chromium_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/base/region.h')
-rw-r--r-- | cc/base/region.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/base/region.h b/cc/base/region.h index 7cced3a..26c1d2b 100644 --- a/cc/base/region.h +++ b/cc/base/region.h @@ -33,6 +33,7 @@ class CC_EXPORT Region { void Swap(Region* region); void Clear(); bool IsEmpty() const; + int GetRegionComplexity() const; bool Contains(gfx::Point point) const; bool Contains(gfx::Rect rect) const; |