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

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

Issue 363813002: Update to Pipeline Metadata and Decoder Stream for Orientation Data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Merge Created 6 years, 5 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/fake_demuxer_stream.h" 5 #include "media/filters/fake_demuxer_stream.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 91
92 void FakeDemuxerStream::EnableBitstreamConverter() { 92 void FakeDemuxerStream::EnableBitstreamConverter() {
93 DCHECK(task_runner_->BelongsToCurrentThread()); 93 DCHECK(task_runner_->BelongsToCurrentThread());
94 } 94 }
95 95
96 bool FakeDemuxerStream::SupportsConfigChanges() { 96 bool FakeDemuxerStream::SupportsConfigChanges() {
97 return config_changes_; 97 return config_changes_;
98 } 98 }
99 99
100 VideoRotation FakeDemuxerStream::video_rotation() {
101 return VIDEO_ROTATION_0;
102 }
103
100 void FakeDemuxerStream::HoldNextRead() { 104 void FakeDemuxerStream::HoldNextRead() {
101 DCHECK(task_runner_->BelongsToCurrentThread()); 105 DCHECK(task_runner_->BelongsToCurrentThread());
102 read_to_hold_ = next_read_num_; 106 read_to_hold_ = next_read_num_;
103 } 107 }
104 108
105 void FakeDemuxerStream::HoldNextConfigChangeRead() { 109 void FakeDemuxerStream::HoldNextConfigChangeRead() {
106 DCHECK(task_runner_->BelongsToCurrentThread()); 110 DCHECK(task_runner_->BelongsToCurrentThread());
107 // Set |read_to_hold_| to be the next config change read. 111 // Set |read_to_hold_| to be the next config change read.
108 read_to_hold_ = next_read_num_ + num_buffers_in_one_config_ - 112 read_to_hold_ = next_read_num_ + num_buffers_in_one_config_ -
109 next_read_num_ % (num_buffers_in_one_config_ + 1); 113 next_read_num_ % (num_buffers_in_one_config_ + 1);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 190
187 num_buffers_left_in_current_config_--; 191 num_buffers_left_in_current_config_--;
188 if (num_buffers_left_in_current_config_ == 0) 192 if (num_buffers_left_in_current_config_ == 0)
189 num_configs_left_--; 193 num_configs_left_--;
190 194
191 num_buffers_returned_++; 195 num_buffers_returned_++;
192 base::ResetAndReturn(&read_cb_).Run(kOk, buffer); 196 base::ResetAndReturn(&read_cb_).Run(kOk, buffer);
193 } 197 }
194 198
195 } // namespace media 199 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698