| OLD | NEW |
| 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 #include "webkit/glue/media/video_renderer_impl.h" | 5 #include "webkit/media/video_renderer_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "media/base/video_frame.h" | 8 #include "media/base/video_frame.h" |
| 9 #include "media/base/yuv_convert.h" | 9 #include "media/base/yuv_convert.h" |
| 10 #include "third_party/skia/include/core/SkCanvas.h" | 10 #include "third_party/skia/include/core/SkCanvas.h" |
| 11 #include "third_party/skia/include/core/SkDevice.h" | 11 #include "third_party/skia/include/core/SkDevice.h" |
| 12 #include "webkit/glue/webmediaplayer_proxy.h" | 12 #include "webkit/media/webmediaplayer_proxy.h" |
| 13 | 13 |
| 14 namespace webkit_glue { | 14 namespace webkit_media { |
| 15 | 15 |
| 16 VideoRendererImpl::VideoRendererImpl(bool pts_logging) | 16 VideoRendererImpl::VideoRendererImpl(bool pts_logging) |
| 17 : last_converted_frame_(NULL), | 17 : last_converted_frame_(NULL), |
| 18 pts_logging_(pts_logging) { | 18 pts_logging_(pts_logging) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 VideoRendererImpl::~VideoRendererImpl() {} | 21 VideoRendererImpl::~VideoRendererImpl() {} |
| 22 | 22 |
| 23 bool VideoRendererImpl::OnInitialize(media::VideoDecoder* decoder) { | 23 bool VideoRendererImpl::OnInitialize(media::VideoDecoder* decoder) { |
| 24 natural_size_ = decoder->natural_size(); | 24 natural_size_ = decoder->natural_size(); |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 video_frame->stride(media::VideoFrame::kYPlane), | 268 video_frame->stride(media::VideoFrame::kYPlane), |
| 269 video_frame->stride(media::VideoFrame::kUPlane), | 269 video_frame->stride(media::VideoFrame::kUPlane), |
| 270 bitmap.rowBytes(), | 270 bitmap.rowBytes(), |
| 271 yuv_type, | 271 yuv_type, |
| 272 media::ROTATE_0, | 272 media::ROTATE_0, |
| 273 media::FILTER_BILINEAR); | 273 media::FILTER_BILINEAR); |
| 274 bitmap.unlockPixels(); | 274 bitmap.unlockPixels(); |
| 275 } | 275 } |
| 276 } | 276 } |
| 277 | 277 |
| 278 } // namespace webkit_glue | 278 } // namespace webkit_media |
| OLD | NEW |