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

Side by Side Diff: cc/video_layer.cc

Issue 12774006: cc: Chromify Layer and LayerImpl classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MoreAndroidCompilings Created 7 years, 9 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 | « 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(VideoFrameProvider* provider) 11 scoped_refptr<VideoLayer> VideoLayer::Create(VideoFrameProvider* provider)
12 { 12 {
13 return make_scoped_refptr(new VideoLayer(provider)); 13 return make_scoped_refptr(new VideoLayer(provider));
14 } 14 }
15 15
16 VideoLayer::VideoLayer(VideoFrameProvider* provider) 16 VideoLayer::VideoLayer(VideoFrameProvider* provider)
17 : m_provider(provider) 17 : m_provider(provider)
18 { 18 {
19 DCHECK(m_provider); 19 DCHECK(m_provider);
20 } 20 }
21 21
22 VideoLayer::~VideoLayer() 22 VideoLayer::~VideoLayer()
23 { 23 {
24 } 24 }
25 25
26 scoped_ptr<LayerImpl> VideoLayer::createLayerImpl(LayerTreeImpl* treeImpl) 26 scoped_ptr<LayerImpl> VideoLayer::CreateLayerImpl(LayerTreeImpl* treeImpl)
27 { 27 {
28 return VideoLayerImpl::create(treeImpl, m_layerId, m_provider).PassAs<LayerI mpl>(); 28 return VideoLayerImpl::Create(treeImpl, id(), m_provider).PassAs<LayerImpl>( );
29 } 29 }
30 30
31 } // namespace cc 31 } // 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