Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: webkit/compositor_bindings/WebDelegatedRendererLayerImpl.cpp

Issue 10915298: Add CCDelegatingRenderer, and corresponding IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/compositor_bindings/WebDelegatedRendererLayerImpl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/WebDelegatedRendererLayerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698