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

Side by Side Diff: webkit/compositor_bindings/web_video_layer_impl.cc

Issue 11231017: Remove ::create factory functions from objects created via WebCompositorSupport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes Created 8 years, 1 month 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/web_transform_animation_curve_impl.cc ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "webkit/compositor_bindings/web_video_layer_impl.h" 5 #include "webkit/compositor_bindings/web_video_layer_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "cc/video_layer.h" 8 #include "cc/video_layer.h"
9 #include "webkit/compositor_bindings/web_layer_impl.h" 9 #include "webkit/compositor_bindings/web_layer_impl.h"
10 #include "webkit/media/webvideoframe_impl.h" 10 #include "webkit/media/webvideoframe_impl.h"
11 11
12 namespace WebKit { 12 namespace WebKit {
13 13
14 WebVideoLayer* WebVideoLayer::create(WebVideoFrameProvider* provider)
15 {
16 return new WebVideoLayerImpl(provider);
17 }
18
19 WebVideoLayerImpl::WebVideoLayerImpl(WebVideoFrameProvider* provider) 14 WebVideoLayerImpl::WebVideoLayerImpl(WebVideoFrameProvider* provider)
20 : m_layer(new WebLayerImpl( 15 : m_layer(new WebLayerImpl(
21 cc::VideoLayer::create( 16 cc::VideoLayer::create(
22 provider, 17 provider,
23 base::Bind(webkit_media::WebVideoFrameImpl::toVideoFrame)))) 18 base::Bind(webkit_media::WebVideoFrameImpl::toVideoFrame))))
24 { 19 {
25 } 20 }
26 21
27 WebVideoLayerImpl::~WebVideoLayerImpl() 22 WebVideoLayerImpl::~WebVideoLayerImpl()
28 { 23 {
29 } 24 }
30 25
31 WebLayer* WebVideoLayerImpl::layer() 26 WebLayer* WebVideoLayerImpl::layer()
32 { 27 {
33 return m_layer.get(); 28 return m_layer.get();
34 } 29 }
35 30
36 bool WebVideoLayerImpl::active() const 31 bool WebVideoLayerImpl::active() const
37 { 32 {
38 return m_layer->layer()->layerTreeHost(); 33 return m_layer->layer()->layerTreeHost();
39 } 34 }
40 35
41 } // namespace WebKit 36 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_transform_animation_curve_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698