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

Unified Diff: cc/resources/ui_resource_client.h

Issue 18191020: UI Resource Manager (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Switched to resource client instead of callback 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/resources/ui_resource_client.h
===================================================================
--- cc/resources/ui_resource_client.h (revision 0)
+++ cc/resources/ui_resource_client.h (revision 0)
@@ -0,0 +1,25 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_RESOURCES_UI_RESOURCE_CLIENT_H_
+#define CC_RESOURCES_UI_RESOURCE_CLIENT_H_
+
+#include "base/callback.h"
+#include "base/memory/ref_counted.h"
+
+namespace cc {
+
+class UIResourceBitmap;
+
+typedef int UIResourceId;
+
+class UIResourceClient {
+ public:
+ virtual scoped_refptr<UIResourceBitmap> Create(bool resource_lost) = 0;
aelias_OOO_until_Jul13 2013/07/26 23:35:32 Could you pass in the UIResourceID as argument her
powei 2013/07/30 21:47:00 Done.
+ virtual ~UIResourceClient() {}
+};
+
+} // namespace cc
+
+#endif // CC_RESOURCES_UI_RESOURCE_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698