summaryrefslogtreecommitdiffstats
path: root/cc/base
diff options
context:
space:
mode:
authorvmpstr <vmpstr@chromium.org>2015-04-29 14:25:25 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-29 21:26:09 +0000
commita960b5558d7210bb5bfa67a832f800bb36e629a7 (patch)
treeb98424ed0d3d144bef903b745fbbe7310499db5d /cc/base
parenta5080f268e879b41a34a3f912fb5dabfc6b7a2dd (diff)
downloadchromium_src-a960b5558d7210bb5bfa67a832f800bb36e629a7.zip
chromium_src-a960b5558d7210bb5bfa67a832f800bb36e629a7.tar.gz
chromium_src-a960b5558d7210bb5bfa67a832f800bb36e629a7.tar.bz2
cc: Remove tile sharing from tilings.
This patch removes sharing tiles from tilings. Previously, tiles that were not invalidated were shared between the pending and the active trees. With this patch, tiles that are exist on the active tree and are not invalidated are not created on the pending tree, resulting in fewer overall tiles. This improves performance of updating and managing tiles. Also, this patch opens up opportunities for a lot of code clean up that can otherwise be confusing when two trees are involved. R=danakj, enne Committed: https://crrev.com/0061b75e810f088900a0a8fbdd29ba5595c73016 Cr-Commit-Position: refs/heads/master@{#326804} Review URL: https://codereview.chromium.org/1051993002 Cr-Commit-Position: refs/heads/master@{#327553}
Diffstat (limited to 'cc/base')
-rw-r--r--cc/base/tiling_data.cc3
-rw-r--r--cc/base/tiling_data.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/cc/base/tiling_data.cc b/cc/base/tiling_data.cc
index c9b2fd9..cf2bb57 100644
--- a/cc/base/tiling_data.cc
+++ b/cc/base/tiling_data.cc
@@ -418,6 +418,9 @@ bool TilingData::BaseDifferenceIterator::HasConsiderRect() const {
return consider_left_ != -1;
}
+TilingData::DifferenceIterator::DifferenceIterator() {
+}
+
TilingData::DifferenceIterator::DifferenceIterator(
const TilingData* tiling_data,
const gfx::Rect& consider_rect,
diff --git a/cc/base/tiling_data.h b/cc/base/tiling_data.h
index a35be59..c95a672 100644
--- a/cc/base/tiling_data.h
+++ b/cc/base/tiling_data.h
@@ -132,6 +132,7 @@ class CC_EXPORT TilingData {
// with |consider| but which also do not intersect with |ignore|.
class CC_EXPORT DifferenceIterator : public BaseDifferenceIterator {
public:
+ DifferenceIterator();
DifferenceIterator(const TilingData* tiling_data,
const gfx::Rect& consider_rect,
const gfx::Rect& ignore_rect);