summaryrefslogtreecommitdiffstats
path: root/cc/base
diff options
context:
space:
mode:
authorvmpstr <vmpstr@chromium.org>2015-04-24 08:38:01 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-24 15:38:24 +0000
commit0061b75e810f088900a0a8fbdd29ba5595c73016 (patch)
treec3d4ded528bc049c3da45a7f64e42fad07584284 /cc/base
parentf82c96f4d8307db54f7908da726d1fd110d1b038 (diff)
downloadchromium_src-0061b75e810f088900a0a8fbdd29ba5595c73016.zip
chromium_src-0061b75e810f088900a0a8fbdd29ba5595c73016.tar.gz
chromium_src-0061b75e810f088900a0a8fbdd29ba5595c73016.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 Review URL: https://codereview.chromium.org/1051993002 Cr-Commit-Position: refs/heads/master@{#326804}
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);