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

Unified Diff: cc/test/fake_scoped_ui_resource.cc

Issue 2247573002: cc: Don't upload UI resources twice after eviction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cc: Don't upload UI resources again after eviction Created 4 years, 4 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_scoped_ui_resource.cc
diff --git a/cc/test/fake_scoped_ui_resource.cc b/cc/test/fake_scoped_ui_resource.cc
index 81e26d929ab6e621b44fa8b31851c9c50e44d0c7..9d1ac454a794dc60723869878bd73f75557c316f 100644
--- a/cc/test/fake_scoped_ui_resource.cc
+++ b/cc/test/fake_scoped_ui_resource.cc
@@ -32,6 +32,11 @@ FakeScopedUIResource::FakeScopedUIResource(LayerTreeHost* host)
id_ = host_->CreateUIResource(this);
}
+void FakeScopedUIResource::DeleteResource() {
+ host_->DeleteUIResource(id_);
+ id_ = 0;
+}
+
UIResourceBitmap FakeScopedUIResource::GetBitmap(UIResourceId uid,
bool resource_lost) {
resource_create_count++;

Powered by Google App Engine
This is Rietveld 408576698