Index: cc/quad_culler_unittest.cc |
diff --git a/cc/quad_culler_unittest.cc b/cc/quad_culler_unittest.cc |
index 1dd64d8d0901161fbf3dc0d9b843a5ce3b49fa66..ca91021b0e908fd7db994633f2135b2030f7b555 100644 |
--- a/cc/quad_culler_unittest.cc |
+++ b/cc/quad_culler_unittest.cc |
@@ -43,12 +43,13 @@ class QuadCullerTest : public testing::Test |
public: |
QuadCullerTest() |
: m_hostImpl(&m_proxy) |
+ , m_layerId(1) |
{ |
} |
scoped_ptr<TiledLayerImpl> makeLayer(TiledLayerImpl* parent, const gfx::Transform& drawTransform, const gfx::Rect& layerRect, float opacity, bool opaque, const gfx::Rect& layerOpaqueRect, std::vector<LayerImpl*>& surfaceLayerList) |
{ |
- scoped_ptr<TiledLayerImpl> layer = TiledLayerImpl::create(m_hostImpl.activeTree(), 1); |
+ scoped_ptr<TiledLayerImpl> layer = TiledLayerImpl::create(m_hostImpl.activeTree(), m_layerId++); |
scoped_ptr<LayerTilingData> tiler = LayerTilingData::create(gfx::Size(100, 100), LayerTilingData::NoBorderTexels); |
tiler->setBounds(layerRect.size()); |
layer->setTilingData(*tiler); |
@@ -96,6 +97,7 @@ public: |
protected: |
FakeImplProxy m_proxy; |
FakeLayerTreeHostImpl m_hostImpl; |
+ int m_layerId; |
}; |
#define DECLARE_AND_INITIALIZE_TEST_QUADS \ |