OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. |
| 4 |
| 5 // Video renderer for media player. |
| 6 |
| 7 #ifndef MEDIA_PLAYER_WTL_RENDERER_H_ |
| 8 #define MEDIA_PLAYER_WTL_RENDERER_H_ |
| 9 |
| 10 #include "media/filters/video_renderer_base.h" |
| 11 |
| 12 class WtlVideoWindow; |
| 13 |
| 14 class WtlVideoRenderer : public media::VideoRendererBase { |
| 15 public: |
| 16 explicit WtlVideoRenderer(WtlVideoWindow* window); |
| 17 virtual bool OnInitialize(size_t width, size_t height); |
| 18 virtual void OnPaintNeeded(); |
| 19 void GetCurrentFrame(scoped_refptr<media::VideoFrame>* frame_out); |
| 20 |
| 21 static bool IsMediaFormatSupported(const media::MediaFormat& format) { |
| 22 return media::VideoRendererBase::IsMediaFormatSupported(format); |
| 23 } |
| 24 |
| 25 private: |
| 26 friend class scoped_refptr<WtlVideoRenderer>; |
| 27 virtual ~WtlVideoRenderer() {} |
| 28 |
| 29 WtlVideoWindow* window_; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(WtlVideoRenderer); |
| 32 }; |
| 33 |
| 34 #endif // MEDIA_PLAYER_WTL_RENDERER_H_ |
| 35 |
OLD | NEW |