Index: cc/resources/ui_resource_manager_client.h |
=================================================================== |
--- cc/resources/ui_resource_manager_client.h (revision 0) |
+++ cc/resources/ui_resource_manager_client.h (revision 0) |
@@ -0,0 +1,31 @@ |
+// 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_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.
|
+#define CC_RESOURCES_UI_RESOURCE_MANAGER_CLIENT_H_ |
+ |
+#include "base/callback.h" |
+#include "base/memory/ref_counted.h" |
+ |
+namespace cc { |
+ |
+class UIResourceBitmap; |
+ |
+typedef int UIResourceId; |
+typedef base::Callback<scoped_refptr<UIResourceBitmap>(bool resource_lost)> |
+ UIResourceCallback; |
enne (OOO)
2013/07/22 23:09:15
style nit: weird indentation. Consider running 'g
powei
2013/07/24 02:28:29
Done.
|
+ |
+// class UIResourceManagerClient { |
enne (OOO)
2013/07/22 23:09:15
Commented code that should be removed?
powei
2013/07/24 02:28:29
Done.
|
+// public: |
+// virtual ~UIResourceManagerClient() {} |
+ // This is called on the main thread when a recently created resource |
+ // has been fully uploaded to a texture. Users of large resources may |
+ // wish to wait for this callback before using the resource ID on a layer, |
+ // to avoid jank until the upload completes. |
+// virtual void UIResourceLost(UIResourceId id) {} |
+// }; |
+ |
+} // namespace cc |
+ |
+#endif // CC_RESOURCES_UI_RESOURCE_MANAGER_CLIENT_H_ |