| Index: cc/test/fake_picture_pile.h
|
| diff --git a/cc/test/fake_picture_pile.h b/cc/test/fake_picture_pile.h
|
| index e486e3b4cd37c63fb53bc38c13f6c9ababb83622..2d8f4bfb989d56aca32ccfe52c3b94dbc1276823 100644
|
| --- a/cc/test/fake_picture_pile.h
|
| +++ b/cc/test/fake_picture_pile.h
|
| @@ -7,12 +7,20 @@
|
|
|
| #include "cc/resources/picture_pile.h"
|
|
|
| +namespace base {
|
| +class WaitableEvent;
|
| +}
|
| +
|
| namespace cc {
|
|
|
| class FakePicturePile : public PicturePile {
|
| public:
|
| + FakePicturePile() : playback_allowed_event_(nullptr) {}
|
| ~FakePicturePile() override {}
|
|
|
| + // PicturePile overrides.
|
| + scoped_refptr<RasterSource> CreateRasterSource() const override;
|
| +
|
| using PicturePile::buffer_pixels;
|
| using PicturePile::CanRasterSlowTileCheck;
|
| using PicturePile::Clear;
|
| @@ -37,6 +45,10 @@ class FakePicturePile : public PicturePile {
|
| has_any_recordings_ = has_recordings;
|
| }
|
|
|
| + void SetPlaybackAllowedEvent(base::WaitableEvent* event) {
|
| + playback_allowed_event_ = event;
|
| + }
|
| +
|
| TilingData& tiling() { return tiling_; }
|
|
|
| bool is_solid_color() const { return is_solid_color_; }
|
| @@ -47,7 +59,11 @@ class FakePicturePile : public PicturePile {
|
| typedef PicturePile::PictureInfo PictureInfo;
|
| typedef PicturePile::PictureMapKey PictureMapKey;
|
| typedef PicturePile::PictureMap PictureMap;
|
| +
|
| + private:
|
| + base::WaitableEvent* playback_allowed_event_;
|
| };
|
| +
|
| } // namespace cc
|
|
|
| #endif // CC_TEST_FAKE_PICTURE_PILE_H_
|
|
|