OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 DelegatedRendererLayerChromium_h | 5 #ifndef DelegatedRendererLayerChromium_h |
6 #define DelegatedRendererLayerChromium_h | 6 #define DelegatedRendererLayerChromium_h |
7 | 7 |
8 #include "LayerChromium.h" | 8 #include <set> |
| 9 #include "cc/compositor_frame.h" |
| 10 #include "cc/LayerChromium.h" |
| 11 #include "cc/transferable_resource.h" |
9 | 12 |
10 namespace cc { | 13 namespace cc { |
11 | 14 |
12 class DelegatedRendererLayerChromium : public LayerChromium { | 15 class DelegatedRendererLayerChromium : public LayerChromium { |
13 public: | 16 public: |
14 static PassRefPtr<DelegatedRendererLayerChromium> create(); | 17 static PassRefPtr<DelegatedRendererLayerChromium> create(); |
15 virtual ~DelegatedRendererLayerChromium(); | 18 virtual ~DelegatedRendererLayerChromium(); |
16 | 19 |
17 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; | 20 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; |
| 21 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE; |
| 22 |
| 23 void setFrameData(const CompositorFrame& frame); |
| 24 void getRecycledResources(TransferableResourceList* list); |
18 | 25 |
19 protected: | 26 protected: |
20 DelegatedRendererLayerChromium(); | 27 DelegatedRendererLayerChromium(); |
| 28 |
| 29 private: |
| 30 bool m_new; |
| 31 CompositorFrame m_frame; |
| 32 std::set<unsigned> m_currentResources; |
| 33 TransferableResourceList m_recyclingResources; |
21 }; | 34 }; |
22 | 35 |
23 } | 36 } |
24 #endif | 37 #endif |
OLD | NEW |