Index: cc/test/fake_picture_layer.cc |
diff --git a/cc/test/fake_picture_layer.cc b/cc/test/fake_picture_layer.cc |
index bd169ba770b4199d617af4372488ec41b5673303..51fcf26a43479138b251c8581d5d24c9165c57ad 100644 |
--- a/cc/test/fake_picture_layer.cc |
+++ b/cc/test/fake_picture_layer.cc |
@@ -4,6 +4,7 @@ |
#include "cc/test/fake_picture_layer.h" |
+#include "cc/test/delayed_raster_picture_pile_impl.h" |
#include "cc/test/fake_picture_layer_impl.h" |
namespace cc { |
@@ -12,8 +13,9 @@ FakePictureLayer::FakePictureLayer(ContentLayerClient* client) |
: PictureLayer(client), |
update_count_(0), |
push_properties_count_(0), |
+ output_surface_created_count_(0), |
always_update_resources_(false), |
- output_surface_created_count_(0) { |
+ delayed_raster_trigger_(nullptr) { |
SetBounds(gfx::Size(1, 1)); |
SetIsDrawable(true); |
} |
@@ -42,4 +44,11 @@ void FakePictureLayer::OnOutputSurfaceCreated() { |
output_surface_created_count_++; |
} |
+scoped_refptr<PicturePileImpl> FakePictureLayer::CreatePicturePileImpl() { |
+ if (!delayed_raster_trigger_) |
+ return PictureLayer::CreatePicturePileImpl(); |
+ return DelayedRasterPicturePileImpl::CreateFromOther( |
+ GetPicturePileForTesting(), delayed_raster_trigger_); |
reveman
2014/11/10 23:43:02
note: if you end up reusing FakePicturePileImpl th
danakj
2014/11/12 20:19:40
I added a constructor to FakePictureLayer to overr
|
+} |
+ |
} // namespace cc |