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

Unified Diff: cc/occlusion_tracker_unittest.cc

Issue 11519018: [cc] Make LayerImpls point at LayerTreeImpl instead of LTHI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
Index: cc/occlusion_tracker_unittest.cc
diff --git a/cc/occlusion_tracker_unittest.cc b/cc/occlusion_tracker_unittest.cc
index 5f366fb0a694f869a6cdc24d7ead272b67936c65..9d5bb9dc9b3d3bc358bd73baeb485171ea2c56dd 100644
--- a/cc/occlusion_tracker_unittest.cc
+++ b/cc/occlusion_tracker_unittest.cc
@@ -61,8 +61,8 @@ private:
class TestContentLayerImpl : public LayerImpl {
public:
- TestContentLayerImpl(LayerTreeHostImpl* hostImpl, int id)
- : LayerImpl(hostImpl, id)
+ TestContentLayerImpl(LayerTreeImpl* treeImpl, int id)
+ : LayerImpl(treeImpl, id)
, m_overrideOpaqueContentsRect(false)
{
setDrawsContent(true);
@@ -157,7 +157,7 @@ struct OcclusionTrackerTestMainThreadTypes {
struct OcclusionTrackerTestImplThreadTypes {
typedef LayerImpl LayerType;
- typedef LayerTreeHostImpl HostType;
+ typedef LayerTreeImpl HostType;
typedef RenderSurfaceImpl RenderSurfaceType;
typedef TestContentLayerImpl ContentLayerType;
typedef scoped_ptr<LayerImpl> LayerPtrType;
@@ -428,9 +428,9 @@ LayerTreeHost* OcclusionTrackerTest<OcclusionTrackerTestMainThreadTypes>::getHos
}
template<>
-LayerTreeHostImpl* OcclusionTrackerTest<OcclusionTrackerTestImplThreadTypes>::getHost()
+LayerTreeImpl* OcclusionTrackerTest<OcclusionTrackerTestImplThreadTypes>::getHost()
{
- return &m_hostImpl;
+ return m_hostImpl.activeTree();
}
#define RUN_TEST_MAIN_THREAD_OPAQUE_LAYERS(ClassName) \
« cc/layer.h ('K') | « cc/nine_patch_layer_impl_unittest.cc ('k') | cc/picture_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698