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

Side by Side Diff: media/base/video_frame.cc

Issue 3176026: FBTF: Remove unneeded headers from base/ (part 7) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 | « media/base/buffers.h ('k') | media/ffmpeg/file_protocol.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "media/base/video_frame.h" 5 #include "media/base/video_frame.h"
6 6
7 #include "base/logging.h"
8
7 namespace media { 9 namespace media {
8 10
9 // static 11 // static
10 void VideoFrame::CreateFrame(VideoFrame::Format format, 12 void VideoFrame::CreateFrame(VideoFrame::Format format,
11 size_t width, 13 size_t width,
12 size_t height, 14 size_t height,
13 base::TimeDelta timestamp, 15 base::TimeDelta timestamp,
14 base::TimeDelta duration, 16 base::TimeDelta duration,
15 scoped_refptr<VideoFrame>* frame_out) { 17 scoped_refptr<VideoFrame>* frame_out) {
16 DCHECK(width > 0 && height > 0); 18 DCHECK(width > 0 && height > 0);
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // so just delete index 0. 202 // so just delete index 0.
201 if (!external_memory_) 203 if (!external_memory_)
202 delete[] data_[0]; 204 delete[] data_[0];
203 } 205 }
204 206
205 bool VideoFrame::IsEndOfStream() const { 207 bool VideoFrame::IsEndOfStream() const {
206 return format_ == VideoFrame::EMPTY; 208 return format_ == VideoFrame::EMPTY;
207 } 209 }
208 210
209 } // namespace media 211 } // namespace media
OLDNEW
« no previous file with comments | « media/base/buffers.h ('k') | media/ffmpeg/file_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698