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

Side by Side Diff: webkit/glue/media/web_video_renderer.h

Issue 7493030: Split WebMediaPlayerImpl::Proxy into its own class. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: fixes Created 9 years, 4 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/glue/media/video_renderer_impl.cc ('k') | webkit/glue/webkit_glue.gypi » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef WEBKIT_GLUE_MEDIA_WEB_VIDEO_RENDERER_H_ 5 #ifndef WEBKIT_GLUE_MEDIA_WEB_VIDEO_RENDERER_H_
6 #define WEBKIT_GLUE_MEDIA_WEB_VIDEO_RENDERER_H_ 6 #define WEBKIT_GLUE_MEDIA_WEB_VIDEO_RENDERER_H_
7 7
8 #include "media/base/video_frame.h" 8 #include "media/base/video_frame.h"
9 #include "media/filters/video_renderer_base.h" 9 #include "media/filters/video_renderer_base.h"
10 #include "webkit/glue/webmediaplayer_impl.h" 10 #include "ui/gfx/rect.h"
11
12 class SkCanvas;
11 13
12 namespace webkit_glue { 14 namespace webkit_glue {
13 15
16 class WebMediaPlayerProxy;
17
14 // A specialized version of a VideoRenderer designed to be used inside WebKit. 18 // A specialized version of a VideoRenderer designed to be used inside WebKit.
15 class WebVideoRenderer : public media::VideoRendererBase { 19 class WebVideoRenderer : public media::VideoRendererBase {
16 public: 20 public:
17 WebVideoRenderer() : media::VideoRendererBase() {} 21 WebVideoRenderer() : media::VideoRendererBase() {}
18 virtual ~WebVideoRenderer() {} 22 virtual ~WebVideoRenderer() {}
19 23
20 // Saves the reference to WebMediaPlayerImpl::Proxy. 24 // Saves the reference to WebMediaPlayerProxy.
21 virtual void SetWebMediaPlayerImplProxy(WebMediaPlayerImpl::Proxy* proxy) = 0; 25 virtual void SetWebMediaPlayerProxy(WebMediaPlayerProxy* proxy) = 0;
22 26
23 // This method is called with the same rect as the Paint() method and could 27 // This method is called with the same rect as the Paint() method and could
24 // be used by future implementations to implement an improved color space + 28 // be used by future implementations to implement an improved color space +
25 // scale code on a separate thread. Since we always do the stretch on the 29 // scale code on a separate thread. Since we always do the stretch on the
26 // same thread as the Paint method, we just ignore the call for now. 30 // same thread as the Paint method, we just ignore the call for now.
27 // 31 //
28 // Method called on the render thread. 32 // Method called on the render thread.
29 virtual void SetRect(const gfx::Rect& rect) = 0; 33 virtual void SetRect(const gfx::Rect& rect) = 0;
30 34
31 // Paint the current front frame on the |canvas| stretching it to fit the 35 // Paint the current front frame on the |canvas| stretching it to fit the
(...skipping 12 matching lines...) Expand all
44 virtual void GetCurrentFrame(scoped_refptr<media::VideoFrame>* frame_out) {} 48 virtual void GetCurrentFrame(scoped_refptr<media::VideoFrame>* frame_out) {}
45 virtual void PutCurrentFrame(scoped_refptr<media::VideoFrame> frame) {} 49 virtual void PutCurrentFrame(scoped_refptr<media::VideoFrame> frame) {}
46 50
47 private: 51 private:
48 DISALLOW_COPY_AND_ASSIGN(WebVideoRenderer); 52 DISALLOW_COPY_AND_ASSIGN(WebVideoRenderer);
49 }; 53 };
50 54
51 } // namespace webkit_glue 55 } // namespace webkit_glue
52 56
53 #endif // WEBKIT_GLUE_MEDIA_WEB_VIDEO_RENDERER_H_ 57 #endif // WEBKIT_GLUE_MEDIA_WEB_VIDEO_RENDERER_H_
OLDNEW
« no previous file with comments | « webkit/glue/media/video_renderer_impl.cc ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698