| Index: cc/test/fake_picture_layer.h
|
| diff --git a/cc/test/fake_picture_layer.h b/cc/test/fake_picture_layer.h
|
| index 7aa155e1d9a3cf7c8ee4ff9cbc91f3abd62eaaf7..f42a14de1045256e1a59d74953ac4b3ba5085ee1 100644
|
| --- a/cc/test/fake_picture_layer.h
|
| +++ b/cc/test/fake_picture_layer.h
|
| @@ -8,15 +8,21 @@
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "cc/layers/picture_layer.h"
|
| +#include "cc/resources/recording_source.h"
|
|
|
| namespace cc {
|
| -
|
| class FakePictureLayer : public PictureLayer {
|
| public:
|
| static scoped_refptr<FakePictureLayer> Create(ContentLayerClient* client) {
|
| return make_scoped_refptr(new FakePictureLayer(client));
|
| }
|
|
|
| + static scoped_refptr<FakePictureLayer> CreateWithRecordingSource(
|
| + ContentLayerClient* client,
|
| + scoped_ptr<RecordingSource> source) {
|
| + return make_scoped_refptr(new FakePictureLayer(client, source.Pass()));
|
| + }
|
| +
|
| scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
|
|
|
| size_t update_count() const { return update_count_; }
|
| @@ -41,12 +47,14 @@ class FakePictureLayer : public PictureLayer {
|
|
|
| private:
|
| explicit FakePictureLayer(ContentLayerClient* client);
|
| + FakePictureLayer(ContentLayerClient* client,
|
| + scoped_ptr<RecordingSource> source);
|
| ~FakePictureLayer() override;
|
|
|
| size_t update_count_;
|
| size_t push_properties_count_;
|
| - bool always_update_resources_;
|
| size_t output_surface_created_count_;
|
| + bool always_update_resources_;
|
| };
|
|
|
| } // namespace cc
|
|
|