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

Side by Side Diff: media/filters/file_data_source.cc

Issue 430583005: Make VEA test support videos with different coded size and visible size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments of patch set 12 Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/filters/file_data_source.h" 5 #include "media/filters/file_data_source.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
11 namespace media { 11 namespace media {
12 12
13 FileDataSource::FileDataSource() 13 FileDataSource::FileDataSource()
14 : force_read_errors_(false), 14 : force_read_errors_(false),
15 force_streaming_(false) { 15 force_streaming_(false) {
16 } 16 }
17 17
18 FileDataSource::FileDataSource(base::File file) 18 FileDataSource::FileDataSource(base::File file)
19 : force_read_errors_(false), 19 : force_read_errors_(false),
20 force_streaming_(false) { 20 force_streaming_(false) {
21 file_.Initialize(file.Pass()); 21 file_.Initialize(file.Pass(), false);
22 } 22 }
23 23
24 bool FileDataSource::Initialize(const base::FilePath& file_path) { 24 bool FileDataSource::Initialize(const base::FilePath& file_path) {
25 DCHECK(!file_.IsValid()); 25 DCHECK(!file_.IsValid());
26 return file_.Initialize(file_path); 26 return file_.Initialize(file_path);
27 } 27 }
28 28
29 void FileDataSource::Stop() { 29 void FileDataSource::Stop() {
30 } 30 }
31 31
(...skipping 25 matching lines...) Expand all
57 57
58 bool FileDataSource::IsStreaming() { 58 bool FileDataSource::IsStreaming() {
59 return force_streaming_; 59 return force_streaming_;
60 } 60 }
61 61
62 void FileDataSource::SetBitrate(int bitrate) {} 62 void FileDataSource::SetBitrate(int bitrate) {}
63 63
64 FileDataSource::~FileDataSource() {} 64 FileDataSource::~FileDataSource() {}
65 65
66 } // namespace media 66 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698