Index: cc/test/fake_picture_layer_impl.cc |
diff --git a/cc/test/fake_picture_layer_impl.cc b/cc/test/fake_picture_layer_impl.cc |
index 98e0f6e58554b202d74fce8311bdcc571691744e..f2a5d5c8fab620f08cd4eb3a7402f41b44756af0 100644 |
--- a/cc/test/fake_picture_layer_impl.cc |
+++ b/cc/test/fake_picture_layer_impl.cc |
@@ -17,7 +17,8 @@ FakePictureLayerImpl::FakePictureLayerImpl(LayerTreeImpl* tree_impl, |
append_quads_count_(0), |
did_become_active_call_count_(0), |
has_valid_tile_priorities_(false), |
- use_set_valid_tile_priorities_flag_(false) { |
+ use_set_valid_tile_priorities_flag_(false), |
+ release_resources_count_(0) { |
pile_ = pile; |
SetBounds(pile_->tiling_size()); |
SetContentBounds(pile_->tiling_size()); |
@@ -31,7 +32,8 @@ FakePictureLayerImpl::FakePictureLayerImpl(LayerTreeImpl* tree_impl, |
append_quads_count_(0), |
did_become_active_call_count_(0), |
has_valid_tile_priorities_(false), |
- use_set_valid_tile_priorities_flag_(false) { |
+ use_set_valid_tile_priorities_flag_(false), |
+ release_resources_count_(0) { |
pile_ = pile; |
SetBounds(layer_bounds); |
SetContentBounds(layer_bounds); |
@@ -42,7 +44,8 @@ FakePictureLayerImpl::FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id) |
append_quads_count_(0), |
did_become_active_call_count_(0), |
has_valid_tile_priorities_(false), |
- use_set_valid_tile_priorities_flag_(false) { |
+ use_set_valid_tile_priorities_flag_(false), |
+ release_resources_count_(0) { |
} |
scoped_ptr<LayerImpl> FakePictureLayerImpl::CreateLayerImpl( |
@@ -179,4 +182,9 @@ bool FakePictureLayerImpl::HasValidTilePriorities() const { |
: PictureLayerImpl::HasValidTilePriorities(); |
} |
+void FakePictureLayerImpl::ReleaseResources() { |
+ PictureLayerImpl::ReleaseResources(); |
+ ++release_resources_count_; |
+} |
+ |
} // namespace cc |