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

Side by Side Diff: webkit/media/video_renderer_impl.cc

Issue 8570010: Moving media-related files from webkit/glue/ to webkit/media/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: minor fixes Created 9 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
« no previous file with comments | « webkit/media/video_renderer_impl.h ('k') | webkit/media/web_data_source.h » ('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 #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
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
OLDNEW
« no previous file with comments | « webkit/media/video_renderer_impl.h ('k') | webkit/media/web_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698