Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4403)

Unified Diff: cc/test/fake_picture_layer_impl.cc

Issue 475633008: cc: Use impl-side painting in LTH context lost tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove extra add_draw_rect Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_picture_layer_impl.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/test/fake_picture_layer_impl.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698