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

Side by Side Diff: cc/video_layer_impl.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win?? 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
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 #ifndef CCVideoLayerImpl_h 5 #ifndef CCVideoLayerImpl_h
6 #define CCVideoLayerImpl_h 6 #define CCVideoLayerImpl_h
7 7
8 #include "IntSize.h" 8 #include "IntSize.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
11 #include "cc/cc_export.h"
11 #include "cc/layer_impl.h" 12 #include "cc/layer_impl.h"
12 #include "media/base/video_frame.h" 13 #include "media/base/video_frame.h"
13 #include "third_party/khronos/GLES2/gl2.h" 14 #include "third_party/khronos/GLES2/gl2.h"
14 #include <public/WebTransformationMatrix.h> 15 #include <public/WebTransformationMatrix.h>
15 #include <public/WebVideoFrameProvider.h> 16 #include <public/WebVideoFrameProvider.h>
16 17
17 namespace WebKit { 18 namespace WebKit {
18 class WebVideoFrame; 19 class WebVideoFrame;
19 } 20 }
20 21
21 namespace media { 22 namespace media {
22 class SkCanvasVideoRenderer; 23 class SkCanvasVideoRenderer;
23 } 24 }
24 25
25 namespace cc { 26 namespace cc {
26 27
27 class LayerTreeHostImpl; 28 class LayerTreeHostImpl;
28 class VideoLayerImpl; 29 class VideoLayerImpl;
29 30
30 class VideoLayerImpl : public LayerImpl 31 class CC_EXPORT VideoLayerImpl : public LayerImpl
31 , public WebKit::WebVideoFrameProvider::Client { 32 , public WebKit::WebVideoFrameProvider::Client {
jamesr 2012/11/01 23:11:30 alignment here is wacky - the ',' was lined up wit
piman 2012/11/02 00:13:37 Done.
32 public: 33 public:
33 typedef base::Callback<media::VideoFrame* (WebKit::WebVideoFrame*)> FrameUnw rapper; 34 typedef base::Callback<media::VideoFrame* (WebKit::WebVideoFrame*)> FrameUnw rapper;
34 35
35 static scoped_ptr<VideoLayerImpl> create(int id, WebKit::WebVideoFrameProvid er* provider, 36 static scoped_ptr<VideoLayerImpl> create(int id, WebKit::WebVideoFrameProvid er* provider,
36 const FrameUnwrapper& unwrapper) 37 const FrameUnwrapper& unwrapper)
37 { 38 {
38 return make_scoped_ptr(new VideoLayerImpl(id, provider, unwrapper)); 39 return make_scoped_ptr(new VideoLayerImpl(id, provider, unwrapper));
39 } 40 }
40 virtual ~VideoLayerImpl(); 41 virtual ~VideoLayerImpl();
41 42
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 ResourceProvider::ResourceId m_externalTextureResource; 93 ResourceProvider::ResourceId m_externalTextureResource;
93 scoped_ptr<media::SkCanvasVideoRenderer> m_videoRenderer; 94 scoped_ptr<media::SkCanvasVideoRenderer> m_videoRenderer;
94 95
95 // Each index in this array corresponds to a plane in media::VideoFrame. 96 // Each index in this array corresponds to a plane in media::VideoFrame.
96 FramePlane m_framePlanes[media::VideoFrame::kMaxPlanes]; 97 FramePlane m_framePlanes[media::VideoFrame::kMaxPlanes];
97 }; 98 };
98 99
99 } // namespace cc 100 } // namespace cc
100 101
101 #endif // CCVideoLayerImpl_h 102 #endif // CCVideoLayerImpl_h
OLDNEW
« cc/occlusion_tracker.cc ('K') | « cc/video_layer.h ('k') | cc/yuv_video_draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698