summaryrefslogtreecommitdiffstats
path: root/cc/tiled_layer.cc
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-30 21:42:02 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-30 21:42:02 +0000
commit710ffc0baaa8aea2878e5016a0c8985efb622cf2 (patch)
tree91e2e6a8d119770392c1845ee759b4de00d3b2f9 /cc/tiled_layer.cc
parentbfc15efd9e558d2a53ac4c6bdbfd88f40c33ebee (diff)
downloadchromium_src-710ffc0baaa8aea2878e5016a0c8985efb622cf2.zip
chromium_src-710ffc0baaa8aea2878e5016a0c8985efb622cf2.tar.gz
chromium_src-710ffc0baaa8aea2878e5016a0c8985efb622cf2.tar.bz2
Fix clipping/culling for DelegatedRendererLayer*
OcclusionTracker::unoccludedContentRect was assuming that transform and clip for the quads matched the one from the layer, which is not true for delegated quads. Instead, explicitly pass transform & clip, and keep the old behavior as unoccludedLayerContentRect for tests. BUG=None Review URL: https://chromiumcodereview.appspot.com/11189133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/tiled_layer.cc')
-rw-r--r--cc/tiled_layer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/tiled_layer.cc b/cc/tiled_layer.cc
index 6c71c5b9..e9a15a5 100644
--- a/cc/tiled_layer.cc
+++ b/cc/tiled_layer.cc
@@ -371,7 +371,7 @@ void TiledLayer::markOcclusionsAndRequestTextures(int left, int top, int right,
continue;
DCHECK(!tile->occluded); // Did resetUpdateState get skipped? Are we doing more than one occlusion pass?
IntRect visibleTileRect = intersection(m_tiler->tileBounds(i, j), visibleContentRect());
- if (occlusion && occlusion->occluded(this, visibleTileRect)) {
+ if (occlusion && occlusion->occluded(renderTarget(), visibleTileRect, drawTransform(), drawTransformIsAnimating(), drawableContentRect())) {
tile->occluded = true;
occludedTileCount++;
} else {