OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_LAYERS_UI_RESOURCE_LAYER_H_ | 5 #ifndef CC_LAYERS_UI_RESOURCE_LAYER_H_ |
6 #define CC_LAYERS_UI_RESOURCE_LAYER_H_ | 6 #define CC_LAYERS_UI_RESOURCE_LAYER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
12 #include "cc/layers/layer.h" | 12 #include "cc/layers/layer.h" |
13 #include "cc/resources/ui_resource_client.h" | 13 #include "cc/resources/ui_resource_client.h" |
14 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 | 17 |
18 class LayerTreeHost; | 18 class LayerTreeHost; |
19 class ScopedUIResource; | |
20 | 19 |
21 class CC_EXPORT UIResourceLayer : public Layer { | 20 class CC_EXPORT UIResourceLayer : public Layer { |
22 public: | 21 public: |
23 static scoped_refptr<UIResourceLayer> Create(); | 22 static scoped_refptr<UIResourceLayer> Create(); |
24 | 23 |
25 void PushPropertiesTo(LayerImpl* layer) override; | 24 void PushPropertiesTo(LayerImpl* layer) override; |
26 | 25 |
27 void SetLayerTreeHost(LayerTreeHost* host) override; | 26 void SetLayerTreeHost(LayerTreeHost* host) override; |
28 | 27 |
29 void SetBitmap(const SkBitmap& skbitmap); | 28 void SetBitmap(const SkBitmap& skbitmap); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 private: | 64 private: |
66 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; | 65 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; |
67 void RecreateUIResourceHolder(); | 66 void RecreateUIResourceHolder(); |
68 | 67 |
69 DISALLOW_COPY_AND_ASSIGN(UIResourceLayer); | 68 DISALLOW_COPY_AND_ASSIGN(UIResourceLayer); |
70 }; | 69 }; |
71 | 70 |
72 } // namespace cc | 71 } // namespace cc |
73 | 72 |
74 #endif // CC_LAYERS_UI_RESOURCE_LAYER_H_ | 73 #endif // CC_LAYERS_UI_RESOURCE_LAYER_H_ |
OLD | NEW |