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

Unified Diff: cc/resources/ui_resource_manager_client.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/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_

Powered by Google App Engine
This is Rietveld 408576698