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

Side by Side Diff: cc/video_layer.cc

Issue 11472021: cc: Pass LayerTreeHostImpl to LayerImpl constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years 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 | « cc/video_layer.h ('k') | cc/video_layer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 "cc/video_layer.h" 5 #include "cc/video_layer.h"
6 6
7 #include "cc/video_layer_impl.h" 7 #include "cc/video_layer_impl.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
11 scoped_refptr<VideoLayer> VideoLayer::create( 11 scoped_refptr<VideoLayer> VideoLayer::create(
12 WebKit::WebVideoFrameProvider* provider, 12 WebKit::WebVideoFrameProvider* provider,
13 const FrameUnwrapper& unwrapper) 13 const FrameUnwrapper& unwrapper)
14 { 14 {
15 return make_scoped_refptr(new VideoLayer(provider, unwrapper)); 15 return make_scoped_refptr(new VideoLayer(provider, unwrapper));
16 } 16 }
17 17
18 VideoLayer::VideoLayer(WebKit::WebVideoFrameProvider* provider, 18 VideoLayer::VideoLayer(WebKit::WebVideoFrameProvider* provider,
19 const FrameUnwrapper& unwrapper) 19 const FrameUnwrapper& unwrapper)
20 : m_provider(provider) 20 : m_provider(provider)
21 , m_unwrapper(unwrapper) 21 , m_unwrapper(unwrapper)
22 { 22 {
23 DCHECK(m_provider); 23 DCHECK(m_provider);
24 } 24 }
25 25
26 VideoLayer::~VideoLayer() 26 VideoLayer::~VideoLayer()
27 { 27 {
28 } 28 }
29 29
30 scoped_ptr<LayerImpl> VideoLayer::createLayerImpl() 30 scoped_ptr<LayerImpl> VideoLayer::createLayerImpl(LayerTreeHostImpl* hostImpl)
31 { 31 {
32 return VideoLayerImpl::create(m_layerId, m_provider, m_unwrapper).PassAs<Lay erImpl>(); 32 return VideoLayerImpl::create(hostImpl, m_layerId, m_provider, m_unwrapper). PassAs<LayerImpl>();
33 } 33 }
34 34
35 } // namespace cc 35 } // namespace cc
OLDNEW
« no previous file with comments | « cc/video_layer.h ('k') | cc/video_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698