diff options
Diffstat (limited to 'cc/test/fake_content_layer.cc')
-rw-r--r-- | cc/test/fake_content_layer.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cc/test/fake_content_layer.cc b/cc/test/fake_content_layer.cc index 5d452ea..5dcc512 100644 --- a/cc/test/fake_content_layer.cc +++ b/cc/test/fake_content_layer.cc @@ -11,7 +11,8 @@ namespace cc { FakeContentLayer::FakeContentLayer(ContentLayerClient* client) : ContentLayer(client), - update_count_(0) { + update_count_(0), + push_properties_count_(0) { SetAnchorPoint(gfx::PointF(0.f, 0.f)); SetBounds(gfx::Size(1, 1)); SetIsDrawable(true); @@ -31,6 +32,11 @@ bool FakeContentLayer::Update(ResourceUpdateQueue* queue, return updated; } +void FakeContentLayer::PushPropertiesTo(LayerImpl* layer) { + ContentLayer::PushPropertiesTo(layer); + push_properties_count_++; +} + bool FakeContentLayer::HaveBackingAt(int i, int j) { const PrioritizedResource* resource = ResourceAtForTesting(i, j); return resource && resource->have_backing_texture(); |