OLD | NEW |
---|---|
(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_MANAGER_CLIENT_H_ | |
aelias_OOO_until_Jul13
2013/07/23 00:06:48
May as well delete this file and move the typedefs
powei
2013/07/24 02:28:29
Done.
| |
6 #define CC_RESOURCES_UI_RESOURCE_MANAGER_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 typedef base::Callback<scoped_refptr<UIResourceBitmap>(bool resource_lost)> | |
17 UIResourceCallback; | |
enne (OOO)
2013/07/22 23:09:15
style nit: weird indentation. Consider running 'g
powei
2013/07/24 02:28:29
Done.
| |
18 | |
19 // class UIResourceManagerClient { | |
enne (OOO)
2013/07/22 23:09:15
Commented code that should be removed?
powei
2013/07/24 02:28:29
Done.
| |
20 // public: | |
21 // virtual ~UIResourceManagerClient() {} | |
22 // This is called on the main thread when a recently created resource | |
23 // has been fully uploaded to a texture. Users of large resources may | |
24 // wish to wait for this callback before using the resource ID on a layer, | |
25 // to avoid jank until the upload completes. | |
26 // virtual void UIResourceLost(UIResourceId id) {} | |
27 // }; | |
28 | |
29 } // namespace cc | |
30 | |
31 #endif // CC_RESOURCES_UI_RESOURCE_MANAGER_CLIENT_H_ | |
OLD | NEW |