Skip to content

Commit

Permalink
[cc] Make LayerImpls point at LayerTreeImpl instead of LTHI
Browse files Browse the repository at this point in the history
BUG=155209
R=enne@chromium.org
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/11519018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172411 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
nduca@chromium.org committed Dec 11, 2012
1 parent db7e6b7 commit 8bef405
Show file tree
Hide file tree
Showing 73 changed files with 466 additions and 442 deletions.
38 changes: 19 additions & 19 deletions cc/damage_tracker_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class DamageTrackerTest : public testing::Test {

scoped_ptr<LayerImpl> createTestTreeWithOneSurface()
{
scoped_ptr<LayerImpl> root = LayerImpl::create(&m_hostImpl, 1);
scoped_ptr<LayerImpl> child = LayerImpl::create(&m_hostImpl, 2);
scoped_ptr<LayerImpl> root = LayerImpl::create(m_hostImpl.activeTree(), 1);
scoped_ptr<LayerImpl> child = LayerImpl::create(m_hostImpl.activeTree(), 2);

root->setPosition(gfx::PointF());
root->setAnchorPoint(gfx::PointF());
Expand All @@ -101,11 +101,11 @@ class DamageTrackerTest : public testing::Test {
// child1. Additionally, the root has a second child layer, and child1 has two
// children of its own.

scoped_ptr<LayerImpl> root = LayerImpl::create(&m_hostImpl, 1);
scoped_ptr<LayerImpl> child1 = LayerImpl::create(&m_hostImpl, 2);
scoped_ptr<LayerImpl> child2 = LayerImpl::create(&m_hostImpl, 3);
scoped_ptr<LayerImpl> grandChild1 = LayerImpl::create(&m_hostImpl, 4);
scoped_ptr<LayerImpl> grandChild2 = LayerImpl::create(&m_hostImpl, 5);
scoped_ptr<LayerImpl> root = LayerImpl::create(m_hostImpl.activeTree(), 1);
scoped_ptr<LayerImpl> child1 = LayerImpl::create(m_hostImpl.activeTree(), 2);
scoped_ptr<LayerImpl> child2 = LayerImpl::create(m_hostImpl.activeTree(), 3);
scoped_ptr<LayerImpl> grandChild1 = LayerImpl::create(m_hostImpl.activeTree(), 4);
scoped_ptr<LayerImpl> grandChild2 = LayerImpl::create(m_hostImpl.activeTree(), 5);

root->setPosition(gfx::PointF());
root->setAnchorPoint(gfx::PointF());
Expand Down Expand Up @@ -536,7 +536,7 @@ TEST_F(DamageTrackerTest, verifyDamageForAddingAndRemovingLayer)
//
clearDamageForAllSurfaces(root.get());
{
scoped_ptr<LayerImpl> child2 = LayerImpl::create(&m_hostImpl, 3);
scoped_ptr<LayerImpl> child2 = LayerImpl::create(m_hostImpl.activeTree(), 3);
child2->setPosition(gfx::PointF(400, 380));
child2->setAnchorPoint(gfx::PointF());
child2->setBounds(gfx::Size(6, 8));
Expand Down Expand Up @@ -577,7 +577,7 @@ TEST_F(DamageTrackerTest, verifyDamageForNewUnchangedLayer)

clearDamageForAllSurfaces(root.get());
{
scoped_ptr<LayerImpl> child2 = LayerImpl::create(&m_hostImpl, 3);
scoped_ptr<LayerImpl> child2 = LayerImpl::create(m_hostImpl.activeTree(), 3);
child2->setPosition(gfx::PointF(400, 380));
child2->setAnchorPoint(gfx::PointF());
child2->setBounds(gfx::Size(6, 8));
Expand Down Expand Up @@ -607,7 +607,7 @@ TEST_F(DamageTrackerTest, verifyDamageForMultipleLayers)
// In this test we don't want the above tree manipulation to be considered part of the same frame.
clearDamageForAllSurfaces(root.get());
{
scoped_ptr<LayerImpl> child2 = LayerImpl::create(&m_hostImpl, 3);
scoped_ptr<LayerImpl> child2 = LayerImpl::create(m_hostImpl.activeTree(), 3);
child2->setPosition(gfx::PointF(400, 380));
child2->setAnchorPoint(gfx::PointF());
child2->setBounds(gfx::Size(6, 8));
Expand Down Expand Up @@ -828,7 +828,7 @@ TEST_F(DamageTrackerTest, verifyDamageForReplica)
// contentBounds of the surface.
grandChild2->setPosition(gfx::PointF(180, 180));
{
scoped_ptr<LayerImpl> grandChild3 = LayerImpl::create(&m_hostImpl, 6);
scoped_ptr<LayerImpl> grandChild3 = LayerImpl::create(m_hostImpl.activeTree(), 6);
grandChild3->setPosition(gfx::PointF(240, 240));
grandChild3->setAnchorPoint(gfx::PointF());
grandChild3->setBounds(gfx::Size(10, 10));
Expand All @@ -843,7 +843,7 @@ TEST_F(DamageTrackerTest, verifyDamageForReplica)
//
clearDamageForAllSurfaces(root.get());
{
scoped_ptr<LayerImpl> grandChild1Replica = LayerImpl::create(&m_hostImpl, 7);
scoped_ptr<LayerImpl> grandChild1Replica = LayerImpl::create(m_hostImpl.activeTree(), 7);
grandChild1Replica->setPosition(gfx::PointF());
grandChild1Replica->setAnchorPoint(gfx::PointF());
gfx::Transform reflection;
Expand Down Expand Up @@ -911,7 +911,7 @@ TEST_F(DamageTrackerTest, verifyDamageForMask)

// Set up the mask layer.
{
scoped_ptr<LayerImpl> maskLayer = LayerImpl::create(&m_hostImpl, 3);
scoped_ptr<LayerImpl> maskLayer = LayerImpl::create(m_hostImpl.activeTree(), 3);
maskLayer->setPosition(child->position());
maskLayer->setAnchorPoint(gfx::PointF());
maskLayer->setBounds(child->bounds());
Expand All @@ -923,7 +923,7 @@ TEST_F(DamageTrackerTest, verifyDamageForMask)
// Add opacity and a grandChild so that the render surface persists even after we remove the mask.
child->setOpacity(0.5);
{
scoped_ptr<LayerImpl> grandChild = LayerImpl::create(&m_hostImpl, 4);
scoped_ptr<LayerImpl> grandChild = LayerImpl::create(m_hostImpl.activeTree(), 4);
grandChild->setPosition(gfx::PointF(2, 2));
grandChild->setAnchorPoint(gfx::PointF());
grandChild->setBounds(gfx::Size(2, 2));
Expand Down Expand Up @@ -996,7 +996,7 @@ TEST_F(DamageTrackerTest, verifyDamageForReplicaMask)

// Create a reflection about the left edge of grandChild1.
{
scoped_ptr<LayerImpl> grandChild1Replica = LayerImpl::create(&m_hostImpl, 6);
scoped_ptr<LayerImpl> grandChild1Replica = LayerImpl::create(m_hostImpl.activeTree(), 6);
grandChild1Replica->setPosition(gfx::PointF());
grandChild1Replica->setAnchorPoint(gfx::PointF());
gfx::Transform reflection;
Expand All @@ -1008,7 +1008,7 @@ TEST_F(DamageTrackerTest, verifyDamageForReplicaMask)

// Set up the mask layer on the replica layer
{
scoped_ptr<LayerImpl> replicaMaskLayer = LayerImpl::create(&m_hostImpl, 7);
scoped_ptr<LayerImpl> replicaMaskLayer = LayerImpl::create(m_hostImpl.activeTree(), 7);
replicaMaskLayer->setPosition(gfx::PointF());
replicaMaskLayer->setAnchorPoint(gfx::PointF());
replicaMaskLayer->setBounds(grandChild1->bounds());
Expand Down Expand Up @@ -1058,7 +1058,7 @@ TEST_F(DamageTrackerTest, verifyDamageForReplicaMaskWithAnchor)
grandChild1->setAnchorPoint(gfx::PointF(1, 0)); // This is not exactly the anchor being tested, but by convention its expected to be the same as the replica's anchor point.

{
scoped_ptr<LayerImpl> grandChild1Replica = LayerImpl::create(&m_hostImpl, 6);
scoped_ptr<LayerImpl> grandChild1Replica = LayerImpl::create(m_hostImpl.activeTree(), 6);
grandChild1Replica->setPosition(gfx::PointF());
grandChild1Replica->setAnchorPoint(gfx::PointF(1, 0)); // This is the anchor being tested.
gfx::Transform reflection;
Expand All @@ -1070,7 +1070,7 @@ TEST_F(DamageTrackerTest, verifyDamageForReplicaMaskWithAnchor)

// Set up the mask layer on the replica layer
{
scoped_ptr<LayerImpl> replicaMaskLayer = LayerImpl::create(&m_hostImpl, 7);
scoped_ptr<LayerImpl> replicaMaskLayer = LayerImpl::create(m_hostImpl.activeTree(), 7);
replicaMaskLayer->setPosition(gfx::PointF());
replicaMaskLayer->setAnchorPoint(gfx::PointF()); // note, this is not the anchor being tested.
replicaMaskLayer->setBounds(grandChild1->bounds());
Expand Down Expand Up @@ -1124,7 +1124,7 @@ TEST_F(DamageTrackerTest, verifyDamageForEmptyLayerList)
// Though it should never happen, its a good idea to verify that the damage tracker
// does not crash when it receives an empty layerList.

scoped_ptr<LayerImpl> root = LayerImpl::create(&m_hostImpl, 1);
scoped_ptr<LayerImpl> root = LayerImpl::create(m_hostImpl.activeTree(), 1);
root->createRenderSurface();

ASSERT_TRUE(root == root->renderTarget());
Expand Down
4 changes: 2 additions & 2 deletions cc/delegated_renderer_layer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ DelegatedRendererLayer::~DelegatedRendererLayer()
{
}

scoped_ptr<LayerImpl> DelegatedRendererLayer::createLayerImpl(LayerTreeHostImpl* hostImpl)
scoped_ptr<LayerImpl> DelegatedRendererLayer::createLayerImpl(LayerTreeImpl* treeImpl)
{
return DelegatedRendererLayerImpl::create(hostImpl, m_layerId).PassAs<LayerImpl>();
return DelegatedRendererLayerImpl::create(treeImpl, m_layerId).PassAs<LayerImpl>();
}

} // namespace cc
2 changes: 1 addition & 1 deletion cc/delegated_renderer_layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CC_EXPORT DelegatedRendererLayer : public Layer {
public:
static scoped_refptr<DelegatedRendererLayer> create();

virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeHostImpl* hostImpl) OVERRIDE;
virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl) OVERRIDE;

protected:
DelegatedRendererLayer();
Expand Down
4 changes: 2 additions & 2 deletions cc/delegated_renderer_layer_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

namespace cc {

DelegatedRendererLayerImpl::DelegatedRendererLayerImpl(LayerTreeHostImpl* hostImpl, int id)
: LayerImpl(hostImpl, id)
DelegatedRendererLayerImpl::DelegatedRendererLayerImpl(LayerTreeImpl* treeImpl, int id)
: LayerImpl(treeImpl, id)
{
}

Expand Down
4 changes: 2 additions & 2 deletions cc/delegated_renderer_layer_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace cc {

class CC_EXPORT DelegatedRendererLayerImpl : public LayerImpl {
public:
static scoped_ptr<DelegatedRendererLayerImpl> create(LayerTreeHostImpl* hostImpl, int id) { return make_scoped_ptr(new DelegatedRendererLayerImpl(hostImpl, id)); }
static scoped_ptr<DelegatedRendererLayerImpl> create(LayerTreeImpl* treeImpl, int id) { return make_scoped_ptr(new DelegatedRendererLayerImpl(treeImpl, id)); }
virtual ~DelegatedRendererLayerImpl();

virtual int descendantsDrawContent() OVERRIDE;
Expand All @@ -32,7 +32,7 @@ class CC_EXPORT DelegatedRendererLayerImpl : public LayerImpl {
virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE;

private:
DelegatedRendererLayerImpl(LayerTreeHostImpl* hostImpl, int id);
DelegatedRendererLayerImpl(LayerTreeImpl* treeImpl, int id);

RenderPass::Id convertDelegatedRenderPassId(RenderPass::Id delegatedRenderPassId) const;

Expand Down
12 changes: 6 additions & 6 deletions cc/delegated_renderer_layer_impl_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ class DelegatedRendererLayerImplTestSimple : public DelegatedRendererLayerImplTe
DelegatedRendererLayerImplTestSimple()
: DelegatedRendererLayerImplTest()
{
scoped_ptr<LayerImpl> rootLayer = SolidColorLayerImpl::create(m_hostImpl.get(), 1).PassAs<LayerImpl>();
scoped_ptr<LayerImpl> layerBefore = SolidColorLayerImpl::create(m_hostImpl.get(), 2).PassAs<LayerImpl>();
scoped_ptr<LayerImpl> layerAfter = SolidColorLayerImpl::create(m_hostImpl.get(), 3).PassAs<LayerImpl>();
scoped_ptr<DelegatedRendererLayerImpl> delegatedRendererLayer = DelegatedRendererLayerImpl::create(m_hostImpl.get(), 4);
scoped_ptr<LayerImpl> rootLayer = SolidColorLayerImpl::create(m_hostImpl->activeTree(), 1).PassAs<LayerImpl>();
scoped_ptr<LayerImpl> layerBefore = SolidColorLayerImpl::create(m_hostImpl->activeTree(), 2).PassAs<LayerImpl>();
scoped_ptr<LayerImpl> layerAfter = SolidColorLayerImpl::create(m_hostImpl->activeTree(), 3).PassAs<LayerImpl>();
scoped_ptr<DelegatedRendererLayerImpl> delegatedRendererLayer = DelegatedRendererLayerImpl::create(m_hostImpl->activeTree(), 4);

m_hostImpl->setViewportSize(gfx::Size(100, 100), gfx::Size(100, 100));
rootLayer->setBounds(gfx::Size(100, 100));
Expand Down Expand Up @@ -420,8 +420,8 @@ class DelegatedRendererLayerImplTestSharedData : public DelegatedRendererLayerIm
DelegatedRendererLayerImplTestSharedData()
: DelegatedRendererLayerImplTest()
{
scoped_ptr<LayerImpl> rootLayer = LayerImpl::create(m_hostImpl.get(), 1);
scoped_ptr<DelegatedRendererLayerImpl> delegatedRendererLayer = DelegatedRendererLayerImpl::create(m_hostImpl.get(), 2);
scoped_ptr<LayerImpl> rootLayer = LayerImpl::create(m_hostImpl->activeTree(), 1);
scoped_ptr<DelegatedRendererLayerImpl> delegatedRendererLayer = DelegatedRendererLayerImpl::create(m_hostImpl->activeTree(), 2);

m_hostImpl->setViewportSize(gfx::Size(100, 100), gfx::Size(100, 100));
rootLayer->setBounds(gfx::Size(100, 100));
Expand Down
2 changes: 1 addition & 1 deletion cc/gl_renderer_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class FakeRendererClient : public RendererClient {
: m_hostImpl(&m_proxy)
, m_setFullRootLayerDamageCount(0)
, m_lastCallWasSetVisibility(0)
, m_rootLayer(LayerImpl::create(&m_hostImpl, 1))
, m_rootLayer(LayerImpl::create(m_hostImpl.activeTree(), 1))
, m_memoryAllocationLimitBytes(PrioritizedResourceManager::defaultMemoryAllocationLimit())
{
m_rootLayer->createRenderSurface();
Expand Down
4 changes: 2 additions & 2 deletions cc/heads_up_display_layer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ void HeadsUpDisplayLayer::setFontAtlas(scoped_ptr<FontAtlas> fontAtlas)
m_hasFontAtlas = true;
}

scoped_ptr<LayerImpl> HeadsUpDisplayLayer::createLayerImpl(LayerTreeHostImpl* hostImpl)
scoped_ptr<LayerImpl> HeadsUpDisplayLayer::createLayerImpl(LayerTreeImpl* treeImpl)
{
return HeadsUpDisplayLayerImpl::create(hostImpl, m_layerId).PassAs<LayerImpl>();
return HeadsUpDisplayLayerImpl::create(treeImpl, m_layerId).PassAs<LayerImpl>();
}

void HeadsUpDisplayLayer::pushPropertiesTo(LayerImpl* layerImpl)
Expand Down
2 changes: 1 addition & 1 deletion cc/heads_up_display_layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class HeadsUpDisplayLayer : public Layer {

void setFontAtlas(scoped_ptr<FontAtlas>);

virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeHostImpl* hostImpl) OVERRIDE;
virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl) OVERRIDE;
virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;

bool hasFontAtlas() const { return m_hasFontAtlas; }
Expand Down
4 changes: 2 additions & 2 deletions cc/heads_up_display_layer_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ static inline SkPaint createPaint()
return paint;
}

HeadsUpDisplayLayerImpl::HeadsUpDisplayLayerImpl(LayerTreeHostImpl* hostImpl, int id)
: LayerImpl(hostImpl, id)
HeadsUpDisplayLayerImpl::HeadsUpDisplayLayerImpl(LayerTreeImpl* treeImpl, int id)
: LayerImpl(treeImpl, id)
, m_averageFPS(0)
, m_minFPS(0)
, m_maxFPS(0)
Expand Down
6 changes: 3 additions & 3 deletions cc/heads_up_display_layer_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class FrameRateCounter;

class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl {
public:
static scoped_ptr<HeadsUpDisplayLayerImpl> create(LayerTreeHostImpl* hostImpl, int id)
static scoped_ptr<HeadsUpDisplayLayerImpl> create(LayerTreeImpl* treeImpl, int id)
{
return make_scoped_ptr(new HeadsUpDisplayLayerImpl(hostImpl, id));
return make_scoped_ptr(new HeadsUpDisplayLayerImpl(treeImpl, id));
}
virtual ~HeadsUpDisplayLayerImpl();

Expand All @@ -42,7 +42,7 @@ class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl {
virtual bool layerIsAlwaysDamaged() const OVERRIDE;

private:
HeadsUpDisplayLayerImpl(LayerTreeHostImpl* hostImpl, int id);
HeadsUpDisplayLayerImpl(LayerTreeImpl* treeImpl, int id);

virtual const char* layerTypeAsString() const OVERRIDE;

Expand Down
4 changes: 2 additions & 2 deletions cc/io_surface_layer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ void IOSurfaceLayer::setIOSurfaceProperties(uint32_t ioSurfaceId, const gfx::Siz
setNeedsCommit();
}

scoped_ptr<LayerImpl> IOSurfaceLayer::createLayerImpl(LayerTreeHostImpl* hostImpl)
scoped_ptr<LayerImpl> IOSurfaceLayer::createLayerImpl(LayerTreeImpl* treeImpl)
{
return IOSurfaceLayerImpl::create(hostImpl, m_layerId).PassAs<LayerImpl>();
return IOSurfaceLayerImpl::create(treeImpl, m_layerId).PassAs<LayerImpl>();
}

bool IOSurfaceLayer::drawsContent() const
Expand Down
2 changes: 1 addition & 1 deletion cc/io_surface_layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CC_EXPORT IOSurfaceLayer : public Layer {

void setIOSurfaceProperties(uint32_t ioSurfaceId, const gfx::Size&);

virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeHostImpl* hostImpl) OVERRIDE;
virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl) OVERRIDE;
virtual bool drawsContent() const OVERRIDE;
virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;

Expand Down
4 changes: 2 additions & 2 deletions cc/io_surface_layer_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

namespace cc {

IOSurfaceLayerImpl::IOSurfaceLayerImpl(LayerTreeHostImpl* hostImpl, int id)
: LayerImpl(hostImpl, id)
IOSurfaceLayerImpl::IOSurfaceLayerImpl(LayerTreeImpl* treeImpl, int id)
: LayerImpl(treeImpl, id)
, m_ioSurfaceId(0)
, m_ioSurfaceChanged(false)
, m_ioSurfaceTextureId(0)
Expand Down
6 changes: 3 additions & 3 deletions cc/io_surface_layer_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ namespace cc {

class CC_EXPORT IOSurfaceLayerImpl : public LayerImpl {
public:
static scoped_ptr<IOSurfaceLayerImpl> create(LayerTreeHostImpl* hostImpl, int id)
static scoped_ptr<IOSurfaceLayerImpl> create(LayerTreeImpl* treeImpl, int id)
{
return make_scoped_ptr(new IOSurfaceLayerImpl(hostImpl, id));
return make_scoped_ptr(new IOSurfaceLayerImpl(treeImpl, id));
}
virtual ~IOSurfaceLayerImpl();

Expand All @@ -29,7 +29,7 @@ class CC_EXPORT IOSurfaceLayerImpl : public LayerImpl {
virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE;

private:
IOSurfaceLayerImpl(LayerTreeHostImpl* hostImpl, int id);
IOSurfaceLayerImpl(LayerTreeImpl* treeImpl, int id);

virtual const char* layerTypeAsString() const OVERRIDE;

Expand Down
4 changes: 2 additions & 2 deletions cc/layer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,9 @@ void Layer::pushPropertiesTo(LayerImpl* layer)
m_updateRect = gfx::RectF();
}

scoped_ptr<LayerImpl> Layer::createLayerImpl(LayerTreeHostImpl* hostImpl)
scoped_ptr<LayerImpl> Layer::createLayerImpl(LayerTreeImpl* treeImpl)
{
return LayerImpl::create(hostImpl, m_layerId);
return LayerImpl::create(treeImpl, m_layerId);
}

bool Layer::drawsContent() const
Expand Down
4 changes: 2 additions & 2 deletions cc/layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct AnimationEvent;
class LayerAnimationDelegate;
class LayerImpl;
class LayerTreeHost;
class LayerTreeHostImpl;
class LayerTreeImpl;
class PriorityCalculator;
class ResourceUpdateQueue;
class ScrollbarLayer;
Expand Down Expand Up @@ -313,7 +313,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, public LayerAnimationCon
scoped_refptr<Layer> m_maskLayer;

// Constructs a LayerImpl of the correct runtime type for this Layer type.
virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeHostImpl* hostImpl);
virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl);
int m_layerId;

private:
Expand Down
Loading

0 comments on commit 8bef405

Please sign in to comment.