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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_RESOURCES_UI_RESOURCE_CLIENT_H_
6 #define CC_RESOURCES_UI_RESOURCE_CLIENT_H_
7
8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h"
10
11 namespace cc {
12
13 class UIResourceBitmap;
14
15 typedef int UIResourceId;
16
17 class UIResourceClient {
18 public:
19 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.
20 virtual ~UIResourceClient() {}
21 };
22
23 } // namespace cc
24
25 #endif // CC_RESOURCES_UI_RESOURCE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698