Index: cc/occlusion_tracker_unittest.cc |
diff --git a/cc/occlusion_tracker_unittest.cc b/cc/occlusion_tracker_unittest.cc |
index 76306b8a2520043a5dd3d2d2d764c3c93eb7daf0..2f98aa8fbfc2012713f27f1c6091aac299983870 100644 |
--- a/cc/occlusion_tracker_unittest.cc |
+++ b/cc/occlusion_tracker_unittest.cc |
@@ -29,10 +29,10 @@ using namespace WebKitTests; |
namespace { |
-class TestContentLayerChromium : public LayerChromium { |
+class TestContentLayer : public Layer { |
public: |
- TestContentLayerChromium() |
- : LayerChromium() |
+ TestContentLayer() |
+ : Layer() |
, m_overrideOpaqueContentsRect(false) |
{ |
} |
@@ -42,7 +42,7 @@ public: |
{ |
if (m_overrideOpaqueContentsRect) |
return intersection(m_opaqueContentsRect, visibleContentRect()); |
- return LayerChromium::visibleContentOpaqueRegion(); |
+ return Layer::visibleContentOpaqueRegion(); |
} |
void setOpaqueContentsRect(const IntRect& opaqueContentsRect) |
{ |
@@ -51,7 +51,7 @@ public: |
} |
private: |
- virtual ~TestContentLayerChromium() |
+ virtual ~TestContentLayer() |
{ |
} |
@@ -59,10 +59,10 @@ private: |
IntRect m_opaqueContentsRect; |
}; |
-class TestContentLayerImpl : public CCLayerImpl { |
+class TestContentLayerImpl : public LayerImpl { |
public: |
TestContentLayerImpl(int id) |
- : CCLayerImpl(id) |
+ : LayerImpl(id) |
, m_overrideOpaqueContentsRect(false) |
{ |
setDrawsContent(true); |
@@ -72,7 +72,7 @@ public: |
{ |
if (m_overrideOpaqueContentsRect) |
return intersection(m_opaqueContentsRect, visibleContentRect()); |
- return CCLayerImpl::visibleContentOpaqueRegion(); |
+ return LayerImpl::visibleContentOpaqueRegion(); |
} |
void setOpaqueContentsRect(const IntRect& opaqueContentsRect) |
{ |
@@ -86,10 +86,10 @@ private: |
}; |
template<typename LayerType, typename RenderSurfaceType> |
-class TestCCOcclusionTrackerWithClip : public TestCCOcclusionTrackerBase<LayerType, RenderSurfaceType> { |
+class TestOcclusionTrackerWithClip : public TestOcclusionTrackerBase<LayerType, RenderSurfaceType> { |
public: |
- TestCCOcclusionTrackerWithClip(IntRect viewportRect, bool recordMetricsForFrame = false) |
- : TestCCOcclusionTrackerBase<LayerType, RenderSurfaceType>(viewportRect, recordMetricsForFrame) |
+ TestOcclusionTrackerWithClip(IntRect viewportRect, bool recordMetricsForFrame = false) |
+ : TestOcclusionTrackerBase<LayerType, RenderSurfaceType>(viewportRect, recordMetricsForFrame) |
, m_overrideLayerClipRect(false) |
{ |
} |
@@ -98,25 +98,25 @@ public: |
void useDefaultLayerClipRect() { m_overrideLayerClipRect = false; } |
protected: |
- virtual IntRect layerClipRectInTarget(const LayerType* layer) const { return m_overrideLayerClipRect ? m_layerClipRect : CCOcclusionTrackerBase<LayerType, RenderSurfaceType>::layerClipRectInTarget(layer); } |
+ virtual IntRect layerClipRectInTarget(const LayerType* layer) const { return m_overrideLayerClipRect ? m_layerClipRect : OcclusionTrackerBase<LayerType, RenderSurfaceType>::layerClipRectInTarget(layer); } |
private: |
bool m_overrideLayerClipRect; |
IntRect m_layerClipRect; |
}; |
-struct CCOcclusionTrackerTestMainThreadTypes { |
- typedef LayerChromium LayerType; |
- typedef RenderSurfaceChromium RenderSurfaceType; |
- typedef TestContentLayerChromium ContentLayerType; |
- typedef scoped_refptr<LayerChromium> LayerPtrType; |
+struct OcclusionTrackerTestMainThreadTypes { |
+ typedef Layer LayerType; |
+ typedef RenderSurface RenderSurfaceType; |
+ typedef TestContentLayer ContentLayerType; |
+ typedef scoped_refptr<Layer> LayerPtrType; |
typedef scoped_refptr<ContentLayerType> ContentLayerPtrType; |
- typedef CCLayerIterator<LayerChromium, std::vector<scoped_refptr<LayerChromium> >, RenderSurfaceChromium, CCLayerIteratorActions::FrontToBack> LayerIterator; |
- typedef CCOcclusionTracker OcclusionTrackerType; |
+ typedef LayerIterator<Layer, std::vector<scoped_refptr<Layer> >, RenderSurface, LayerIteratorActions::FrontToBack> LayerIterator; |
+ typedef OcclusionTracker OcclusionTrackerType; |
static LayerPtrType createLayer() |
{ |
- return LayerChromium::create(); |
+ return Layer::create(); |
} |
static ContentLayerPtrType createContentLayer() { return make_scoped_refptr(new ContentLayerType()); } |
@@ -136,18 +136,18 @@ struct CCOcclusionTrackerTestMainThreadTypes { |
} |
}; |
-struct CCOcclusionTrackerTestImplThreadTypes { |
- typedef CCLayerImpl LayerType; |
- typedef CCRenderSurface RenderSurfaceType; |
+struct OcclusionTrackerTestImplThreadTypes { |
+ typedef LayerImpl LayerType; |
+ typedef RenderSurfaceImpl RenderSurfaceType; |
typedef TestContentLayerImpl ContentLayerType; |
- typedef scoped_ptr<CCLayerImpl> LayerPtrType; |
+ typedef scoped_ptr<LayerImpl> LayerPtrType; |
typedef scoped_ptr<ContentLayerType> ContentLayerPtrType; |
- typedef CCLayerIterator<CCLayerImpl, std::vector<CCLayerImpl*>, CCRenderSurface, CCLayerIteratorActions::FrontToBack> LayerIterator; |
- typedef CCOcclusionTrackerImpl OcclusionTrackerType; |
+ typedef LayerIterator<LayerImpl, std::vector<LayerImpl*>, RenderSurfaceImpl, LayerIteratorActions::FrontToBack> LayerIterator; |
+ typedef OcclusionTrackerImpl OcclusionTrackerType; |
- static LayerPtrType createLayer() { return CCLayerImpl::create(nextCCLayerImplId++); } |
- static ContentLayerPtrType createContentLayer() { return make_scoped_ptr(new ContentLayerType(nextCCLayerImplId++)); } |
- static int nextCCLayerImplId; |
+ static LayerPtrType createLayer() { return LayerImpl::create(nextLayerImplId++); } |
+ static ContentLayerPtrType createContentLayer() { return make_scoped_ptr(new ContentLayerType(nextLayerImplId++)); } |
+ static int nextLayerImplId; |
static LayerPtrType passLayerPtr(LayerPtrType& layer) |
{ |
@@ -165,12 +165,12 @@ struct CCOcclusionTrackerTestImplThreadTypes { |
} |
}; |
-int CCOcclusionTrackerTestImplThreadTypes::nextCCLayerImplId = 1; |
+int OcclusionTrackerTestImplThreadTypes::nextLayerImplId = 1; |
template<typename Types, bool opaqueLayers> |
-class CCOcclusionTrackerTest : public testing::Test { |
+class OcclusionTrackerTest : public testing::Test { |
protected: |
- CCOcclusionTrackerTest() |
+ OcclusionTrackerTest() |
: testing::Test() |
{ } |
@@ -179,11 +179,11 @@ protected: |
virtual void TearDown() |
{ |
Types::destroyLayer(m_root); |
- m_renderSurfaceLayerListChromium.clear(); |
+ m_renderSurfaceLayerList.clear(); |
m_renderSurfaceLayerListImpl.clear(); |
m_replicaLayers.clear(); |
m_maskLayers.clear(); |
- CCLayerTreeHost::setNeedsFilterContext(false); |
+ LayerTreeHost::setNeedsFilterContext(false); |
} |
typename Types::ContentLayerType* createRoot(const WebTransformationMatrix& transform, const FloatPoint& position, const IntSize& bounds) |
@@ -266,25 +266,25 @@ protected: |
{ |
ASSERT(root == m_root.get()); |
int dummyMaxTextureSize = 512; |
- CCLayerSorter layerSorter; |
+ LayerSorter layerSorter; |
ASSERT(!root->renderSurface()); |
- CCLayerTreeHostCommon::calculateDrawTransforms(root, root->bounds(), 1, &layerSorter, dummyMaxTextureSize, m_renderSurfaceLayerListImpl); |
+ LayerTreeHostCommon::calculateDrawTransforms(root, root->bounds(), 1, &layerSorter, dummyMaxTextureSize, m_renderSurfaceLayerListImpl); |
m_layerIterator = m_layerIteratorBegin = Types::LayerIterator::begin(&m_renderSurfaceLayerListImpl); |
} |
- void calcDrawEtc(TestContentLayerChromium* root) |
+ void calcDrawEtc(TestContentLayer* root) |
{ |
ASSERT(root == m_root.get()); |
int dummyMaxTextureSize = 512; |
ASSERT(!root->renderSurface()); |
- CCLayerTreeHostCommon::calculateDrawTransforms(root, root->bounds(), 1, dummyMaxTextureSize, m_renderSurfaceLayerListChromium); |
+ LayerTreeHostCommon::calculateDrawTransforms(root, root->bounds(), 1, dummyMaxTextureSize, m_renderSurfaceLayerList); |
- m_layerIterator = m_layerIteratorBegin = Types::LayerIterator::begin(&m_renderSurfaceLayerListChromium); |
+ m_layerIterator = m_layerIteratorBegin = Types::LayerIterator::begin(&m_renderSurfaceLayerList); |
} |
void enterLayer(typename Types::LayerType* layer, typename Types::OcclusionTrackerType& occlusion) |
@@ -350,80 +350,80 @@ private: |
layer->setBounds(bounds); |
} |
- void setProperties(LayerChromium* layer, const WebTransformationMatrix& transform, const FloatPoint& position, const IntSize& bounds) |
+ void setProperties(Layer* layer, const WebTransformationMatrix& transform, const FloatPoint& position, const IntSize& bounds) |
{ |
setBaseProperties(layer, transform, position, bounds); |
} |
- void setProperties(CCLayerImpl* layer, const WebTransformationMatrix& transform, const FloatPoint& position, const IntSize& bounds) |
+ void setProperties(LayerImpl* layer, const WebTransformationMatrix& transform, const FloatPoint& position, const IntSize& bounds) |
{ |
setBaseProperties(layer, transform, position, bounds); |
layer->setContentBounds(layer->bounds()); |
} |
- void setReplica(LayerChromium* owningLayer, scoped_refptr<LayerChromium> layer) |
+ void setReplica(Layer* owningLayer, scoped_refptr<Layer> layer) |
{ |
owningLayer->setReplicaLayer(layer.get()); |
m_replicaLayers.push_back(layer); |
} |
- void setReplica(CCLayerImpl* owningLayer, scoped_ptr<CCLayerImpl> layer) |
+ void setReplica(LayerImpl* owningLayer, scoped_ptr<LayerImpl> layer) |
{ |
owningLayer->setReplicaLayer(layer.Pass()); |
} |
- void setMask(LayerChromium* owningLayer, scoped_refptr<LayerChromium> layer) |
+ void setMask(Layer* owningLayer, scoped_refptr<Layer> layer) |
{ |
owningLayer->setMaskLayer(layer.get()); |
m_maskLayers.push_back(layer); |
} |
- void setMask(CCLayerImpl* owningLayer, scoped_ptr<CCLayerImpl> layer) |
+ void setMask(LayerImpl* owningLayer, scoped_ptr<LayerImpl> layer) |
{ |
owningLayer->setMaskLayer(layer.Pass()); |
} |
// These hold ownership of the layers for the duration of the test. |
typename Types::LayerPtrType m_root; |
- std::vector<scoped_refptr<LayerChromium> > m_renderSurfaceLayerListChromium; |
- std::vector<CCLayerImpl*> m_renderSurfaceLayerListImpl; |
+ std::vector<scoped_refptr<Layer> > m_renderSurfaceLayerList; |
+ std::vector<LayerImpl*> m_renderSurfaceLayerListImpl; |
typename Types::LayerIterator m_layerIteratorBegin; |
typename Types::LayerIterator m_layerIterator; |
typename Types::LayerType* m_lastLayerVisited; |
- std::vector<scoped_refptr<LayerChromium> > m_replicaLayers; |
- std::vector<scoped_refptr<LayerChromium> > m_maskLayers; |
+ std::vector<scoped_refptr<Layer> > m_replicaLayers; |
+ std::vector<scoped_refptr<Layer> > m_maskLayers; |
}; |
#define RUN_TEST_MAIN_THREAD_OPAQUE_LAYERS(ClassName) \ |
- class ClassName##MainThreadOpaqueLayers : public ClassName<CCOcclusionTrackerTestMainThreadTypes, true> { \ |
+ class ClassName##MainThreadOpaqueLayers : public ClassName<OcclusionTrackerTestMainThreadTypes, true> { \ |
public: \ |
- ClassName##MainThreadOpaqueLayers() : ClassName<CCOcclusionTrackerTestMainThreadTypes, true>() { } \ |
+ ClassName##MainThreadOpaqueLayers() : ClassName<OcclusionTrackerTestMainThreadTypes, true>() { } \ |
}; \ |
TEST_F(ClassName##MainThreadOpaqueLayers, runTest) { runMyTest(); } |
#define RUN_TEST_MAIN_THREAD_OPAQUE_PAINTS(ClassName) \ |
- class ClassName##MainThreadOpaquePaints : public ClassName<CCOcclusionTrackerTestMainThreadTypes, false> { \ |
+ class ClassName##MainThreadOpaquePaints : public ClassName<OcclusionTrackerTestMainThreadTypes, false> { \ |
public: \ |
- ClassName##MainThreadOpaquePaints() : ClassName<CCOcclusionTrackerTestMainThreadTypes, false>() { } \ |
+ ClassName##MainThreadOpaquePaints() : ClassName<OcclusionTrackerTestMainThreadTypes, false>() { } \ |
}; \ |
TEST_F(ClassName##MainThreadOpaquePaints, runTest) { runMyTest(); } |
#define RUN_TEST_IMPL_THREAD_OPAQUE_LAYERS(ClassName) \ |
- class ClassName##ImplThreadOpaqueLayers : public ClassName<CCOcclusionTrackerTestImplThreadTypes, true> { \ |
+ class ClassName##ImplThreadOpaqueLayers : public ClassName<OcclusionTrackerTestImplThreadTypes, true> { \ |
DebugScopedSetImplThread impl; \ |
public: \ |
- ClassName##ImplThreadOpaqueLayers() : ClassName<CCOcclusionTrackerTestImplThreadTypes, true>() { } \ |
+ ClassName##ImplThreadOpaqueLayers() : ClassName<OcclusionTrackerTestImplThreadTypes, true>() { } \ |
}; \ |
TEST_F(ClassName##ImplThreadOpaqueLayers, runTest) { runMyTest(); } |
#define RUN_TEST_IMPL_THREAD_OPAQUE_PAINTS(ClassName) \ |
- class ClassName##ImplThreadOpaquePaints : public ClassName<CCOcclusionTrackerTestImplThreadTypes, false> { \ |
+ class ClassName##ImplThreadOpaquePaints : public ClassName<OcclusionTrackerTestImplThreadTypes, false> { \ |
DebugScopedSetImplThread impl; \ |
public: \ |
- ClassName##ImplThreadOpaquePaints() : ClassName<CCOcclusionTrackerTestImplThreadTypes, false>() { } \ |
+ ClassName##ImplThreadOpaquePaints() : ClassName<OcclusionTrackerTestImplThreadTypes, false>() { } \ |
}; \ |
TEST_F(ClassName##ImplThreadOpaquePaints, runTest) { runMyTest(); } |
-#define ALL_CCOCCLUSIONTRACKER_TEST(ClassName) \ |
+#define ALL_OCCLUSIONTRACKER_TEST(ClassName) \ |
RUN_TEST_MAIN_THREAD_OPAQUE_LAYERS(ClassName) \ |
RUN_TEST_MAIN_THREAD_OPAQUE_PAINTS(ClassName) \ |
RUN_TEST_IMPL_THREAD_OPAQUE_LAYERS(ClassName) \ |
@@ -440,7 +440,7 @@ private: |
RUN_TEST_IMPL_THREAD_OPAQUE_LAYERS(ClassName) |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestIdentityTransforms : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestIdentityTransforms : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -448,7 +448,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingLayer(parent, this->identityMatrix, FloatPoint(30, 30), IntSize(500, 500), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(layer, occlusion); |
@@ -485,10 +485,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestIdentityTransforms); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestIdentityTransforms); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestRotatedChild : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestRotatedChild : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -501,7 +501,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingLayer(parent, layerTransform, FloatPoint(30, 30), IntSize(500, 500), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(layer, occlusion); |
@@ -538,10 +538,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestRotatedChild); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestRotatedChild); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestTranslatedChild : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestTranslatedChild : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -552,7 +552,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingLayer(parent, layerTransform, FloatPoint(30, 30), IntSize(500, 500), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(layer, occlusion); |
@@ -601,10 +601,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestTranslatedChild); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestTranslatedChild); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestChildInRotatedChild : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestChildInRotatedChild : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -620,7 +620,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingLayer(child, this->identityMatrix, FloatPoint(10, 10), IntSize(500, 500), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(layer, occlusion); |
@@ -681,10 +681,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestChildInRotatedChild); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestChildInRotatedChild); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestVisitTargetTwoTimes : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestVisitTargetTwoTimes : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -698,12 +698,12 @@ protected: |
typename Types::LayerType* child = this->createLayer(parent, childTransform, FloatPoint(30, 30), IntSize(500, 500)); |
child->setMasksToBounds(true); |
typename Types::ContentLayerType* layer = this->createDrawingLayer(child, this->identityMatrix, FloatPoint(10, 10), IntSize(500, 500), true); |
- // |child2| makes |parent|'s surface get considered by CCOcclusionTracker first, instead of |child|'s. This exercises different code in |
+ // |child2| makes |parent|'s surface get considered by OcclusionTracker first, instead of |child|'s. This exercises different code in |
// leaveToTargetRenderSurface, as the target surface has already been seen. |
typename Types::ContentLayerType* child2 = this->createDrawingLayer(parent, this->identityMatrix, FloatPoint(30, 30), IntSize(60, 20), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(-10, -10, 1000, 1000)); |
this->visitLayer(child2, occlusion); |
@@ -793,10 +793,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestVisitTargetTwoTimes); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestVisitTargetTwoTimes); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestSurfaceRotatedOffAxis : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestSurfaceRotatedOffAxis : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -814,10 +814,10 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingLayer(child, layerTransform, FloatPoint(0, 0), IntSize(500, 500), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
- IntRect clippedLayerInChild = CCMathUtil::mapClippedRect(layerTransform, layer->visibleContentRect()); |
+ IntRect clippedLayerInChild = MathUtil::mapClippedRect(layerTransform, layer->visibleContentRect()); |
this->visitLayer(layer, occlusion); |
this->enterContributingSurface(child, occlusion); |
@@ -859,10 +859,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestSurfaceRotatedOffAxis); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestSurfaceRotatedOffAxis); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestSurfaceWithTwoOpaqueChildren : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -879,7 +879,7 @@ protected: |
typename Types::ContentLayerType* layer2 = this->createDrawingLayer(child, this->identityMatrix, FloatPoint(10, 450), IntSize(500, 60), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(layer2, occlusion); |
@@ -948,10 +948,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestSurfaceWithTwoOpaqueChildren); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestOverlappingSurfaceSiblings : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestOverlappingSurfaceSiblings : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -968,7 +968,7 @@ protected: |
typename Types::ContentLayerType* layer2 = this->createDrawingLayer(child2, this->identityMatrix, FloatPoint(-10, -10), IntSize(510, 510), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(-20, -20, 1000, 1000)); |
this->visitLayer(layer2, occlusion); |
@@ -1058,10 +1058,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestOverlappingSurfaceSiblings); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestOverlappingSurfaceSiblings); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1083,7 +1083,7 @@ protected: |
typename Types::ContentLayerType* layer2 = this->createDrawingLayer(child2, this->identityMatrix, FloatPoint(-10, -10), IntSize(510, 510), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(-30, -30, 1000, 1000)); |
this->visitLayer(layer2, occlusion); |
@@ -1166,10 +1166,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestFilters : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestFilters : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1198,7 +1198,7 @@ protected: |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
// Opacity layer won't contribute to occlusion. |
@@ -1250,10 +1250,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestFilters); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestFilters); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestReplicaDoesOcclude : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestReplicaDoesOcclude : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1262,7 +1262,7 @@ protected: |
this->createReplicaLayer(surface, this->identityMatrix, FloatPoint(50, 50), IntSize()); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(surface, occlusion); |
@@ -1281,10 +1281,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestReplicaDoesOcclude); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestReplicaDoesOcclude); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestReplicaWithClipping : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestReplicaWithClipping : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1294,7 +1294,7 @@ protected: |
this->createReplicaLayer(surface, this->identityMatrix, FloatPoint(50, 50), IntSize()); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(surface, occlusion); |
@@ -1313,10 +1313,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestReplicaWithClipping); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestReplicaWithClipping); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestReplicaWithMask : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestReplicaWithMask : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1326,7 +1326,7 @@ protected: |
this->createMaskLayer(replica, IntSize(10, 10)); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(surface, occlusion); |
@@ -1345,10 +1345,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestReplicaWithMask); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestReplicaWithMask); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestLayerClipRectOutsideChild : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestLayerClipRectOutsideChild : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1356,7 +1356,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingSurface(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(200, 200), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(200, 100, 100, 100)); |
this->enterLayer(layer, occlusion); |
@@ -1389,10 +1389,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestLayerClipRectOutsideChild); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestLayerClipRectOutsideChild); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestViewportRectOutsideChild : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestViewportRectOutsideChild : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1400,7 +1400,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingSurface(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(200, 200), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(200, 100, 100, 100)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(200, 100, 100, 100)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->enterLayer(layer, occlusion); |
@@ -1433,10 +1433,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestViewportRectOutsideChild); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestViewportRectOutsideChild); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestLayerClipRectOverChild : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestLayerClipRectOverChild : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1444,7 +1444,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingSurface(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(200, 200), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(100, 100, 100, 100)); |
this->enterLayer(layer, occlusion); |
@@ -1472,10 +1472,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestLayerClipRectOverChild); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestLayerClipRectOverChild); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestViewportRectOverChild : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestViewportRectOverChild : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1483,7 +1483,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingSurface(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(200, 200), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(100, 100, 100, 100)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(100, 100, 100, 100)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->enterLayer(layer, occlusion); |
@@ -1511,10 +1511,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestViewportRectOverChild); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestViewportRectOverChild); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestLayerClipRectPartlyOverChild : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestLayerClipRectPartlyOverChild : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1522,7 +1522,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingSurface(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(200, 200), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(50, 50, 200, 200)); |
this->enterLayer(layer, occlusion); |
@@ -1554,10 +1554,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestLayerClipRectPartlyOverChild); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestLayerClipRectPartlyOverChild); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestViewportRectPartlyOverChild : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestViewportRectPartlyOverChild : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1565,7 +1565,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingSurface(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(200, 200), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(50, 50, 200, 200)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(50, 50, 200, 200)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->enterLayer(layer, occlusion); |
@@ -1597,10 +1597,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestViewportRectPartlyOverChild); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestViewportRectPartlyOverChild); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestLayerClipRectOverNothing : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestLayerClipRectOverNothing : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1608,7 +1608,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingSurface(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(200, 200), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(500, 500, 100, 100)); |
this->enterLayer(layer, occlusion); |
@@ -1640,10 +1640,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestLayerClipRectOverNothing); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestLayerClipRectOverNothing); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestViewportRectOverNothing : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestViewportRectOverNothing : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1651,7 +1651,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingSurface(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(200, 200), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(500, 500, 100, 100)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(500, 500, 100, 100)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->enterLayer(layer, occlusion); |
@@ -1683,10 +1683,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestViewportRectOverNothing); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestViewportRectOverNothing); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestLayerClipRectForLayerOffOrigin : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestLayerClipRectForLayerOffOrigin : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1694,7 +1694,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingSurface(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(200, 200), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
this->enterLayer(layer, occlusion); |
// This layer is translated when drawn into its target. So if the clip rect given from the target surface |
@@ -1707,10 +1707,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestLayerClipRectForLayerOffOrigin); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestLayerClipRectForLayerOffOrigin); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestOpaqueContentsRegionEmpty : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestOpaqueContentsRegionEmpty : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1718,7 +1718,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingSurface(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(200, 200), false); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
this->enterLayer(layer, occlusion); |
EXPECT_FALSE(occlusion.occluded(layer, IntRect(0, 0, 100, 100))); |
@@ -1743,10 +1743,10 @@ protected: |
} |
}; |
-MAIN_AND_IMPL_THREAD_TEST(CCOcclusionTrackerTestOpaqueContentsRegionEmpty); |
+MAIN_AND_IMPL_THREAD_TEST(OcclusionTrackerTestOpaqueContentsRegionEmpty); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestOpaqueContentsRegionNonEmpty : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1755,7 +1755,7 @@ protected: |
this->calcDrawEtc(parent); |
{ |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
layer->setOpaqueContentsRect(IntRect(0, 0, 100, 100)); |
this->resetLayerIterator(); |
@@ -1771,7 +1771,7 @@ protected: |
} |
{ |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
layer->setOpaqueContentsRect(IntRect(20, 20, 180, 180)); |
this->resetLayerIterator(); |
@@ -1787,7 +1787,7 @@ protected: |
} |
{ |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
layer->setOpaqueContentsRect(IntRect(150, 150, 100, 100)); |
this->resetLayerIterator(); |
@@ -1804,10 +1804,10 @@ protected: |
} |
}; |
-MAIN_AND_IMPL_THREAD_TEST(CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty); |
+MAIN_AND_IMPL_THREAD_TEST(OcclusionTrackerTestOpaqueContentsRegionNonEmpty); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTest3dTransform : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTest3dTransform : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1819,7 +1819,7 @@ protected: |
typename Types::ContentLayerType* layer = this->createDrawingLayer(container, transform, FloatPoint(100, 100), IntSize(200, 200), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
this->enterLayer(layer, occlusion); |
// The layer is rotated in 3d but without preserving 3d, so it only gets resized. |
@@ -1827,10 +1827,10 @@ protected: |
} |
}; |
-MAIN_AND_IMPL_THREAD_TEST(CCOcclusionTrackerTest3dTransform); |
+MAIN_AND_IMPL_THREAD_TEST(OcclusionTrackerTest3dTransform); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestUnsorted3dLayers : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestUnsorted3dLayers : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1853,7 +1853,7 @@ protected: |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(child2, occlusion); |
EXPECT_TRUE(occlusion.occlusionInScreenSpace().isEmpty()); |
EXPECT_TRUE(occlusion.occlusionInTargetSurface().isEmpty()); |
@@ -1865,10 +1865,10 @@ protected: |
}; |
// This test will have different layer ordering on the impl thread; the test will only work on the main thread. |
-MAIN_THREAD_TEST(CCOcclusionTrackerTestUnsorted3dLayers); |
+MAIN_THREAD_TEST(OcclusionTrackerTestUnsorted3dLayers); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestPerspectiveTransform : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestPerspectiveTransform : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1885,7 +1885,7 @@ protected: |
layer->setPreserves3D(true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
this->enterLayer(layer, occlusion); |
EXPECT_RECT_EQ(IntRect(0, 0, 200, 200), occlusion.unoccludedContentRect(layer, IntRect(0, 0, 200, 200))); |
@@ -1893,10 +1893,10 @@ protected: |
}; |
// This test requires accumulating occlusion of 3d layers, which are skipped by the occlusion tracker on the main thread. So this test should run on the impl thread. |
-IMPL_THREAD_TEST(CCOcclusionTrackerTestPerspectiveTransform); |
+IMPL_THREAD_TEST(OcclusionTrackerTestPerspectiveTransform); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestPerspectiveTransformBehindCamera : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestPerspectiveTransformBehindCamera : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1916,7 +1916,7 @@ protected: |
layer->setPreserves3D(true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
this->enterLayer(layer, occlusion); |
// The bottom 11 pixel rows of this layer remain visible inside the container, after translation to the target surface. When translated back, |
@@ -1926,10 +1926,10 @@ protected: |
}; |
// This test requires accumulating occlusion of 3d layers, which are skipped by the occlusion tracker on the main thread. So this test should run on the impl thread. |
-IMPL_THREAD_TEST(CCOcclusionTrackerTestPerspectiveTransformBehindCamera); |
+IMPL_THREAD_TEST(OcclusionTrackerTestPerspectiveTransformBehindCamera); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestLayerBehindCameraDoesNotOcclude : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1945,7 +1945,7 @@ protected: |
layer->setPreserves3D(true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
// The |layer| is entirely behind the camera and should not occlude. |
this->visitLayer(layer, occlusion); |
@@ -1956,10 +1956,10 @@ protected: |
}; |
// This test requires accumulating occlusion of 3d layers, which are skipped by the occlusion tracker on the main thread. So this test should run on the impl thread. |
-IMPL_THREAD_TEST(CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude); |
+IMPL_THREAD_TEST(OcclusionTrackerTestLayerBehindCameraDoesNotOcclude); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestLargePixelsOccludeInsideClipRect : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -1976,7 +1976,7 @@ protected: |
layer->setPreserves3D(true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
// This is very close to the camera, so pixels in its visibleContentRect will actually go outside of the layer's clipRect. |
// Ensure that those pixels don't occlude things outside the clipRect. |
@@ -1990,10 +1990,10 @@ protected: |
}; |
// This test requires accumulating occlusion of 3d layers, which are skipped by the occlusion tracker on the main thread. So this test should run on the impl thread. |
-IMPL_THREAD_TEST(CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect); |
+IMPL_THREAD_TEST(OcclusionTrackerTestLargePixelsOccludeInsideClipRect); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestAnimationOpacity1OnMainThread : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestAnimationOpacity1OnMainThread : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2013,7 +2013,7 @@ protected: |
EXPECT_FALSE(surface->drawOpacityIsAnimating()); |
EXPECT_TRUE(surface->renderSurface()->drawOpacityIsAnimating()); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(topmost, occlusion); |
this->enterLayer(parent2, occlusion); |
@@ -2042,10 +2042,10 @@ protected: |
} |
}; |
-MAIN_THREAD_TEST(CCOcclusionTrackerTestAnimationOpacity1OnMainThread); |
+MAIN_THREAD_TEST(OcclusionTrackerTestAnimationOpacity1OnMainThread); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestAnimationOpacity0OnMainThread : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestAnimationOpacity0OnMainThread : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2065,7 +2065,7 @@ protected: |
EXPECT_FALSE(surface->drawOpacityIsAnimating()); |
EXPECT_TRUE(surface->renderSurface()->drawOpacityIsAnimating()); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(topmost, occlusion); |
this->enterLayer(parent2, occlusion); |
@@ -2094,10 +2094,10 @@ protected: |
} |
}; |
-MAIN_THREAD_TEST(CCOcclusionTrackerTestAnimationOpacity0OnMainThread); |
+MAIN_THREAD_TEST(OcclusionTrackerTestAnimationOpacity0OnMainThread); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestAnimationTranslateOnMainThread : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestAnimationTranslateOnMainThread : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2123,7 +2123,7 @@ protected: |
EXPECT_TRUE(surfaceChild->drawTransformIsAnimating()); |
EXPECT_TRUE(surfaceChild->screenSpaceTransformIsAnimating()); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(surface2, occlusion); |
this->enterContributingSurface(surface2, occlusion); |
@@ -2186,10 +2186,10 @@ protected: |
} |
}; |
-MAIN_THREAD_TEST(CCOcclusionTrackerTestAnimationTranslateOnMainThread); |
+MAIN_THREAD_TEST(OcclusionTrackerTestAnimationTranslateOnMainThread); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestSurfaceOcclusionTranslatesToParent : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2205,7 +2205,7 @@ protected: |
surface2->setOpaqueContentsRect(IntRect(0, 0, 200, 200)); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(surface2, occlusion); |
this->visitContributingSurface(surface2, occlusion); |
@@ -2229,10 +2229,10 @@ protected: |
} |
}; |
-MAIN_AND_IMPL_THREAD_TEST(CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent); |
+MAIN_AND_IMPL_THREAD_TEST(OcclusionTrackerTestSurfaceOcclusionTranslatesToParent); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2242,7 +2242,7 @@ protected: |
surface->setOpaqueContentsRect(IntRect(0, 0, 400, 200)); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(surface, occlusion); |
this->visitContributingSurface(surface, occlusion); |
@@ -2254,10 +2254,10 @@ protected: |
} |
}; |
-MAIN_AND_IMPL_THREAD_TEST(CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping); |
+MAIN_AND_IMPL_THREAD_TEST(OcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestReplicaOccluded : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestReplicaOccluded : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2267,7 +2267,7 @@ protected: |
typename Types::LayerType* topmost = this->createDrawingLayer(parent, this->identityMatrix, FloatPoint(0, 100), IntSize(100, 100), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
// |topmost| occludes the replica, but not the surface itself. |
@@ -2292,10 +2292,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestReplicaOccluded); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestReplicaOccluded); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestSurfaceWithReplicaUnoccluded : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2305,7 +2305,7 @@ protected: |
typename Types::LayerType* topmost = this->createDrawingLayer(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(100, 110), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
// |topmost| occludes the surface, but not the entire surface's replica. |
@@ -2331,10 +2331,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestSurfaceWithReplicaUnoccluded); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestSurfaceAndReplicaOccludedDifferently : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2345,7 +2345,7 @@ protected: |
typename Types::LayerType* overReplica = this->createDrawingLayer(parent, this->identityMatrix, FloatPoint(0, 100), IntSize(50, 100), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
// These occlude the surface and replica differently, so we can test each one. |
@@ -2372,10 +2372,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestSurfaceAndReplicaOccludedDifferently); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestSurfaceChildOfSurface : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestSurfaceChildOfSurface : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2387,7 +2387,7 @@ protected: |
typename Types::LayerType* topmost = this->createDrawingLayer(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(100, 50), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(-100, -100, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(-100, -100, 1000, 1000)); |
// |topmost| occludes everything partially so we know occlusion is happening at all. |
this->visitLayer(topmost, occlusion); |
@@ -2430,10 +2430,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestSurfaceChildOfSurface); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestSurfaceChildOfSurface); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestTopmostSurfaceIsClippedToViewport : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestTopmostSurfaceIsClippedToViewport : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2445,7 +2445,7 @@ protected: |
{ |
// Make a viewport rect that is larger than the root layer. |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(surface, occlusion); |
@@ -2457,7 +2457,7 @@ protected: |
this->resetLayerIterator(); |
{ |
// Make a viewport rect that is smaller than the root layer. |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 100, 100)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 100, 100)); |
this->visitLayer(surface, occlusion); |
@@ -2469,10 +2469,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestTopmostSurfaceIsClippedToViewport); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestTopmostSurfaceIsClippedToViewport); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestSurfaceChildOfClippingSurface : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestSurfaceChildOfClippingSurface : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2485,7 +2485,7 @@ protected: |
typename Types::LayerType* topmost = this->createDrawingLayer(parent, this->identityMatrix, FloatPoint(0, 0), IntSize(100, 50), true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
// |topmost| occludes everything partially so we know occlusion is happening at all. |
@@ -2520,10 +2520,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestSurfaceChildOfClippingSurface); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestSurfaceChildOfClippingSurface); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilter : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilter : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2553,7 +2553,7 @@ protected: |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
// These layers occlude pixels directly beside the filteredSurface. Because filtered surface blends pixels in a radius, it will |
@@ -2645,10 +2645,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilter); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilter); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestTwoBackgroundFiltersReduceOcclusionTwice : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestTwoBackgroundFiltersReduceOcclusionTwice : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2675,7 +2675,7 @@ protected: |
this->calcDrawEtc(root); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(occludingLayerAbove, occlusion); |
@@ -2707,10 +2707,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestTwoBackgroundFiltersReduceOcclusionTwice); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestTwoBackgroundFiltersReduceOcclusionTwice); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilterWithClip : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilterWithClip : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2739,7 +2739,7 @@ protected: |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
// These layers occlude pixels directly beside the filteredSurface. Because filtered surface blends pixels in a radius, it will |
@@ -2832,10 +2832,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilterWithClip); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilterWithClip); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestDontReduceOcclusionBelowBackgroundFilter : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestDontReduceOcclusionBelowBackgroundFilter : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2858,7 +2858,7 @@ protected: |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
// The surface has a background blur, so it blurs non-opaque pixels below it. |
@@ -2881,10 +2881,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestDontReduceOcclusionBelowBackgroundFilter); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestDontReduceOcclusionBelowBackgroundFilter); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestDontReduceOcclusionIfBackgroundFilterIsOccluded : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestDontReduceOcclusionIfBackgroundFilterIsOccluded : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2907,7 +2907,7 @@ protected: |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(aboveReplicaLayer, occlusion); |
@@ -2929,10 +2929,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestDontReduceOcclusionIfBackgroundFilterIsOccluded); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestDontReduceOcclusionIfBackgroundFilterIsOccluded); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestReduceOcclusionWhenBackgroundFilterIsPartiallyOccluded : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestReduceOcclusionWhenBackgroundFilterIsPartiallyOccluded : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -2961,7 +2961,7 @@ protected: |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
this->visitLayer(besideReplicaLayer, occlusion); |
@@ -3001,10 +3001,10 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestReduceOcclusionWhenBackgroundFilterIsPartiallyOccluded); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestReduceOcclusionWhenBackgroundFilterIsPartiallyOccluded); |
template<class Types, bool opaqueLayers> |
-class CCOcclusionTrackerTestMinimumTrackingSize : public CCOcclusionTrackerTest<Types, opaqueLayers> { |
+class OcclusionTrackerTestMinimumTrackingSize : public OcclusionTrackerTest<Types, opaqueLayers> { |
protected: |
void runMyTest() |
{ |
@@ -3016,7 +3016,7 @@ protected: |
typename Types::LayerType* small = this->createDrawingLayer(parent, this->identityMatrix, FloatPoint(0, 0), belowTrackingSize, true); |
this->calcDrawEtc(parent); |
- TestCCOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
+ TestOcclusionTrackerWithClip<typename Types::LayerType, typename Types::RenderSurfaceType> occlusion(IntRect(0, 0, 1000, 1000)); |
occlusion.setLayerClipRect(IntRect(0, 0, 1000, 1000)); |
occlusion.setMinimumTrackingSize(trackingSize); |
@@ -3038,6 +3038,6 @@ protected: |
} |
}; |
-ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestMinimumTrackingSize); |
+ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestMinimumTrackingSize); |
} // namespace |