| 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 WebDelegatedRendererLayerImpl_h | 5 #ifndef WebDelegatedRendererLayerImpl_h |
| 6 #define WebDelegatedRendererLayerImpl_h | 6 #define WebDelegatedRendererLayerImpl_h |
| 7 | 7 |
| 8 #include "WebLayerImpl.h" | 8 #include "WebLayerImpl.h" |
| 9 #include <public/WebDelegatedRendererLayer.h> | 9 #include <public/WebDelegatedRendererLayer.h> |
| 10 #include <wtf/OwnPtr.h> | 10 #include <wtf/OwnPtr.h> |
| 11 | 11 |
| 12 namespace WebKit { | 12 namespace WebKit { |
| 13 | 13 |
| 14 class WebDelegatedRendererLayerImpl : public WebDelegatedRendererLayer { | 14 class WebDelegatedRendererLayerImpl : public WebDelegatedRendererLayer { |
| 15 public: | 15 public: |
| 16 WebDelegatedRendererLayerImpl(); | 16 WebDelegatedRendererLayerImpl(); |
| 17 | 17 |
| 18 // WebDelegatedRendererLayer implementation. | 18 // WebDelegatedRendererLayer implementation. |
| 19 virtual WebLayer* layer() OVERRIDE; | 19 virtual WebLayer* layer() OVERRIDE; |
| 20 | 20 |
| 21 virtual void setFrameData(const WebCompositorFrame& frame) OVERRIDE; |
| 22 virtual void getRecycledResources(WebCompositorTransferableResourceList* lis
t) OVERRIDE; |
| 21 protected: | 23 protected: |
| 22 virtual ~WebDelegatedRendererLayerImpl(); | 24 virtual ~WebDelegatedRendererLayerImpl(); |
| 23 | 25 |
| 24 private: | 26 private: |
| 25 OwnPtr<WebLayerImpl> m_layer; | 27 OwnPtr<WebLayerImpl> m_layer; |
| 26 }; | 28 }; |
| 27 | 29 |
| 28 } // namespace WebKit | 30 } // namespace WebKit |
| 29 | 31 |
| 30 #endif // WebDelegatedLayerImpl_h | 32 #endif // WebDelegatedLayerImpl_h |
| OLD | NEW |