Chromium Code Reviews| Index: cc/test/fake_content_layer.cc |
| diff --git a/cc/test/fake_content_layer.cc b/cc/test/fake_content_layer.cc |
| index 56a52cc10c7dd24a51163dc6f9b30586ef6bca30..685a4572a8b05b1f8966246e502db5173555014c 100644 |
| --- a/cc/test/fake_content_layer.cc |
| +++ b/cc/test/fake_content_layer.cc |
| @@ -4,11 +4,18 @@ |
| #include "cc/test/fake_content_layer.h" |
| +#include "cc/resources/content_layer_updater.h" |
| #include "cc/resources/prioritized_resource.h" |
| #include "cc/test/fake_content_layer_impl.h" |
| namespace cc { |
| +class FakeContentLayerUpdater : public ContentLayerUpdater { |
| + public: |
| + ~FakeContentLayerUpdater() {} |
|
danakj
2013/12/04 16:32:17
It should be virtual, then LGTM
|
| + using ContentLayerUpdater::content_rect; |
| +}; |
| + |
| FakeContentLayer::FakeContentLayer(ContentLayerClient* client) |
| : ContentLayer(client), |
| update_count_(0), |
| @@ -34,6 +41,11 @@ bool FakeContentLayer::Update(ResourceUpdateQueue* queue, |
| return updated || always_update_resources_; |
| } |
| +gfx::Rect FakeContentLayer::LastPaintRect() const { |
| + return (static_cast<FakeContentLayerUpdater*> |
| + (Updater()))->content_rect(); |
| +} |
| + |
| void FakeContentLayer::PushPropertiesTo(LayerImpl* layer) { |
| ContentLayer::PushPropertiesTo(layer); |
| push_properties_count_++; |