OLD | NEW |
1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008-2009 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/glue/webmediaplayer_impl.h" | 5 #include "webkit/glue/webmediaplayer_impl.h" |
6 | 6 |
7 #include "media/base/media_format.h" | 7 #include "media/base/media_format.h" |
8 #include "media/filters/ffmpeg_audio_decoder.h" | 8 #include "media/filters/ffmpeg_audio_decoder.h" |
9 #include "media/filters/ffmpeg_demuxer.h" | 9 #include "media/filters/ffmpeg_demuxer.h" |
10 #include "media/filters/ffmpeg_video_decoder.h" | 10 #include "media/filters/ffmpeg_video_decoder.h" |
11 #include "media/filters/null_audio_renderer.h" | 11 #include "media/filters/null_audio_renderer.h" |
12 #include "skia/ext/platform_canvas.h" | 12 #include "skia/ext/platform_canvas.h" |
13 #include "webkit/api/public/WebRect.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" |
14 #include "webkit/api/public/WebSize.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h" |
15 #include "webkit/api/public/WebURL.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
16 #include "webkit/glue/media/video_renderer_impl.h" | 16 #include "webkit/glue/media/video_renderer_impl.h" |
17 | 17 |
18 using WebKit::WebCanvas; | 18 using WebKit::WebCanvas; |
19 using WebKit::WebRect; | 19 using WebKit::WebRect; |
20 using WebKit::WebSize; | 20 using WebKit::WebSize; |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 // Limits the maximum outstanding repaints posted on render thread. | 24 // Limits the maximum outstanding repaints posted on render thread. |
25 // This number of 50 is a guess, it does not take too much memory on the task | 25 // This number of 50 is a guess, it does not take too much memory on the task |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 } | 661 } |
662 } | 662 } |
663 | 663 |
664 WebKit::WebMediaPlayerClient* WebMediaPlayerImpl::GetClient() { | 664 WebKit::WebMediaPlayerClient* WebMediaPlayerImpl::GetClient() { |
665 DCHECK(MessageLoop::current() == main_loop_); | 665 DCHECK(MessageLoop::current() == main_loop_); |
666 DCHECK(client_); | 666 DCHECK(client_); |
667 return client_; | 667 return client_; |
668 } | 668 } |
669 | 669 |
670 } // namespace webkit_glue | 670 } // namespace webkit_glue |
OLD | NEW |