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 #include "config.h" | 5 #include "config.h" |
6 #include "WebDelegatedRendererLayerImpl.h" | 6 #include "WebDelegatedRendererLayerImpl.h" |
7 | 7 |
8 #include "DelegatedRendererLayerChromium.h" | 8 #include "cc/compositor_frame.h" |
| 9 #include "cc/DelegatedRendererLayerChromium.h" |
9 | 10 |
10 using namespace cc; | 11 using namespace cc; |
11 | 12 |
12 namespace WebKit { | 13 namespace WebKit { |
13 | 14 |
14 WebDelegatedRendererLayerImpl::WebDelegatedRendererLayerImpl() | 15 WebDelegatedRendererLayerImpl::WebDelegatedRendererLayerImpl() |
15 : m_layer(adoptPtr(new WebLayerImpl(DelegatedRendererLayerChromium::create()
))) | 16 : m_layer(adoptPtr(new WebLayerImpl(DelegatedRendererLayerChromium::create()
))) |
16 { | 17 { |
17 } | 18 } |
18 | 19 |
19 WebDelegatedRendererLayerImpl::~WebDelegatedRendererLayerImpl() | 20 WebDelegatedRendererLayerImpl::~WebDelegatedRendererLayerImpl() |
20 { | 21 { |
21 } | 22 } |
22 | 23 |
23 WebLayer* WebDelegatedRendererLayerImpl::layer() | 24 WebLayer* WebDelegatedRendererLayerImpl::layer() |
24 { | 25 { |
25 return m_layer.get(); | 26 return m_layer.get(); |
26 } | 27 } |
27 | 28 |
| 29 void WebDelegatedRendererLayerImpl::setFrameData(const WebCompositorFrame& frame
) |
| 30 { |
| 31 static_cast<DelegatedRendererLayerChromium*>(m_layer->layer())->setFrameData
(static_cast<const CompositorFrame&>(frame)); |
| 32 } |
| 33 |
| 34 void WebDelegatedRendererLayerImpl::getRecycledResources(WebCompositorTransferab
leResourceList* list) |
| 35 { |
| 36 static_cast<DelegatedRendererLayerChromium*>(m_layer->layer())->getRecycledR
esources(static_cast<TransferableResourceList*>(list)); |
| 37 } |
| 38 |
28 } // namespace WebKit | 39 } // namespace WebKit |
OLD | NEW |