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

Unified Diff: cc/test/fake_picture_layer_impl.h

Issue 2468023002: Don't free non-tile resources on GPU rasterization toggle (Closed)
Patch Set: fix unittest Created 4 years, 1 month 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/layers/texture_layer_impl_unittest.cc ('k') | cc/test/fake_picture_layer_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.h
diff --git a/cc/test/fake_picture_layer_impl.h b/cc/test/fake_picture_layer_impl.h
index 3ae72a2a9151806b4821fed543a1e74cdf55fc33..f0bf7622c75516e085f56a296db0dd6275d0d179 100644
--- a/cc/test/fake_picture_layer_impl.h
+++ b/cc/test/fake_picture_layer_impl.h
@@ -140,9 +140,12 @@ class FakePictureLayerImpl : public PictureLayerImpl {
}
size_t release_resources_count() const { return release_resources_count_; }
- void reset_release_resources_count() { release_resources_count_ = 0; }
+ size_t release_tile_resources_count() const {
+ return release_tile_resources_count_;
+ }
void ReleaseResources() override;
+ void ReleaseTileResources() override;
bool only_used_low_res_last_append_quads() const {
return only_used_low_res_last_append_quads_;
@@ -163,11 +166,12 @@ class FakePictureLayerImpl : public PictureLayerImpl {
private:
gfx::Size fixed_tile_size_;
- size_t append_quads_count_;
- size_t did_become_active_call_count_;
- bool has_valid_tile_priorities_;
- bool use_set_valid_tile_priorities_flag_;
- size_t release_resources_count_;
+ size_t append_quads_count_ = 0;
+ size_t did_become_active_call_count_ = 0;
+ bool has_valid_tile_priorities_ = false;
+ bool use_set_valid_tile_priorities_flag_ = false;
+ size_t release_resources_count_ = 0;
+ size_t release_tile_resources_count_ = 0;
};
} // namespace cc
« no previous file with comments | « cc/layers/texture_layer_impl_unittest.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698