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..1a19bc78ce64428f226e4d08a3252d09b4f31b1b 100644 |
--- a/cc/test/fake_picture_layer.cc |
+++ b/cc/test/fake_picture_layer.cc |
@@ -12,8 +12,19 @@ FakePictureLayer::FakePictureLayer(ContentLayerClient* client) |
: PictureLayer(client), |
update_count_(0), |
push_properties_count_(0), |
- always_update_resources_(false), |
- output_surface_created_count_(0) { |
+ output_surface_created_count_(0), |
+ always_update_resources_(false) { |
+ SetBounds(gfx::Size(1, 1)); |
+ SetIsDrawable(true); |
+} |
+ |
+FakePictureLayer::FakePictureLayer(ContentLayerClient* client, |
+ scoped_ptr<RecordingSource> source) |
+ : PictureLayer(client, source.Pass()), |
+ update_count_(0), |
+ push_properties_count_(0), |
+ output_surface_created_count_(0), |
+ always_update_resources_(false) { |
SetBounds(gfx::Size(1, 1)); |
SetIsDrawable(true); |
} |