Index: cc/resources/scoped_ui_resource.h |
=================================================================== |
--- cc/resources/scoped_ui_resource.h (revision 0) |
+++ cc/resources/scoped_ui_resource.h (revision 0) |
@@ -0,0 +1,39 @@ |
+// 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_SCOPED_UI_RESOURCE_H_ |
+#define CC_RESOURCES_SCOPED_UI_RESOURCE_H_ |
+ |
+#include "base/memory/ref_counted.h" |
+#include "cc/resources/ui_resource_bitmap.h" |
+#include "cc/resources/ui_resource_client.h" |
+#include "ui/gfx/size.h" |
+ |
+namespace cc { |
+ |
+class LayerTreeHost; |
+ |
+class ScopedUIResource : public UIResourceClient { |
+ public: |
+ ScopedUIResource(LayerTreeHost* host, scoped_refptr<UIResourceBitmap> bitmap); |
aelias_OOO_until_Jul13
2013/07/26 23:35:32
Actually, the static Create thing you did earlier
powei
2013/07/30 21:47:00
Done.
|
+ virtual ~ScopedUIResource(); |
+ |
+ virtual scoped_refptr<UIResourceBitmap> Create(bool resource_lost); |
+ UIResourceId id() { return id_; } |
+ |
+ protected: |
+ // An empty default contructor for testing. |
+ ScopedUIResource() {} |
+ |
+ scoped_refptr<UIResourceBitmap> bitmap_; |
+ LayerTreeHost* host_; |
+ UIResourceId id_; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ScopedUIResource); |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_RESOURCES_SCOPED_UI_RESOURCE_H_ |
Property changes on: cc/resources/scoped_ui_resource.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |