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

Unified Diff: cc/trees/proxy.h

Issue 18191020: UI Resource Manager (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 5 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/trees/proxy.h
===================================================================
--- cc/trees/proxy.h (revision 210393)
+++ cc/trees/proxy.h (working copy)
@@ -26,6 +26,8 @@
namespace cc {
+typedef int UIResourceId;
+class UIResourceBitmap;
class OutputSurface;
struct RendererCapabilities;
@@ -100,6 +102,19 @@
virtual bool CommitPendingForTesting() = 0;
virtual std::string SchedulerStateAsStringForTesting();
+ virtual void CreateUIResource(UIResourceId uid,
+ scoped_refptr<UIResourceBitmap> bitmap,
+ bool async) = 0;
+
+ virtual void
+ CreateUIResourceOnImplThread(UIResourceId uid,
+ scoped_refptr<UIResourceBitmap> bitmap,
+ bool async) = 0;
+
+ virtual void DeleteUIResource(UIResourceId uid) = 0;
+
+ virtual void DeleteUIResourceOnImplThread(UIResourceId uid) = 0;
+
protected:
explicit Proxy(
scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);

Powered by Google App Engine
This is Rietveld 408576698