Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1731)

Unified Diff: cc/tiled_layer_unittest.cc

Issue 11871008: cc: Stop using drawableContentRect for occlusion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/tiled_layer.cc ('k') | content/common/cc_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiled_layer_unittest.cc
diff --git a/cc/tiled_layer_unittest.cc b/cc/tiled_layer_unittest.cc
index b06551e8da18003cb92ebaef69fdb52ebca1c743..16740a1b8fe63da1832ccafcb856b8533a9ff8ef 100644
--- a/cc/tiled_layer_unittest.cc
+++ b/cc/tiled_layer_unittest.cc
@@ -29,7 +29,6 @@ class TestOcclusionTracker : public OcclusionTracker {
public:
TestOcclusionTracker()
: OcclusionTracker(gfx::Rect(0, 0, 1000, 1000), true)
- , m_layerClipRectInTarget(gfx::Rect(0, 0, 1000, 1000))
{
m_stack.push_back(StackObject());
}
@@ -39,13 +38,10 @@ public:
m_stack.back().target = renderTarget;
}
- void setOcclusion(const Region& occlusion) { m_stack.back().occlusionFromInsideTarget = occlusion; }
-
-protected:
- virtual gfx::Rect layerClipRectInTarget(const Layer* layer) const OVERRIDE { return m_layerClipRectInTarget; }
-
-private:
- gfx::Rect m_layerClipRectInTarget;
+ void setOcclusion(const Region& occlusion)
+ {
+ m_stack.back().occlusionFromInsideTarget = occlusion;
+ }
};
class TiledLayerTest : public testing::Test {
« no previous file with comments | « cc/tiled_layer.cc ('k') | content/common/cc_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698