Index: cc/test/test_ui_resource_client.h |
=================================================================== |
--- cc/test/test_ui_resource_client.h (revision 0) |
+++ cc/test/test_ui_resource_client.h (revision 0) |
@@ -0,0 +1,32 @@ |
+// 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_TEST_TEST_UI_RESOURCE_CLIENT_H_ |
+#define CC_TEST_TEST_UI_RESOURCE_CLIENT_H_ |
+ |
+#include "base/callback.h" |
+#include "base/memory/ref_counted.h" |
+#include "cc/resources/ui_resource_bitmap.h" |
+#include "cc/resources/ui_resource_manager_client.h" |
+ |
+namespace cc { |
+ |
+class LayerTreeHost; |
+ |
+class TestUIResourceClient |
+ : public base::RefCounted<TestUIResourceClient> { |
+ public: |
+ TestUIResourceClient(); |
+ scoped_refptr<UIResourceBitmap> GetBitmap(bool resource_lost); |
+ void CreateResource(LayerTreeHost* host); |
+ |
+ UIResourceId id; |
+ unsigned lost_resource_count; |
aelias_OOO_until_Jul13
2013/07/23 00:06:48
int. "unsigned" is not used in Chromium (sometimes
powei
2013/07/24 02:28:29
Done.
|
+ protected: |
+ scoped_refptr<UIResourceBitmap> bitmap_; |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_TEST_TEST_UI_RESOURCE_CLIENT_H_ |