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

Unified Diff: cc/test/fake_picture_layer_impl.h

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: check isReadyToDraw for evict texture test. 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
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 fbaecf74951accda0b8b1e8eff21736e6059e561..7b99dd58ea46a234094fb542572c41894b66d297 100644
--- a/cc/test/fake_picture_layer_impl.h
+++ b/cc/test/fake_picture_layer_impl.h
@@ -112,6 +112,13 @@ class FakePictureLayerImpl : public PictureLayerImpl {
void ResetAllTilesPriorities();
PictureLayerTilingSet* GetTilings() { return tilings_.get(); }
+ size_t lost_output_surface_count() const {
danakj 2014/09/10 16:03:31 nit: release_resources_count?
sohanjg 2014/09/11 06:07:57 Done. should we change in fakecontentlayerimpl too
+ return lost_output_surface_count_;
+ }
+ void reset_lost_output_surface_count() { lost_output_surface_count_ = 0; }
+
+ virtual void ReleaseResources() OVERRIDE;
+
protected:
FakePictureLayerImpl(
LayerTreeImpl* tree_impl,
@@ -130,6 +137,7 @@ class FakePictureLayerImpl : public PictureLayerImpl {
size_t did_become_active_call_count_;
bool has_valid_tile_priorities_;
bool use_set_valid_tile_priorities_flag_;
+ size_t lost_output_surface_count_;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698