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

Side by Side Diff: chromecast/browser/media/media_pipeline_host.cc

Issue 823283004: Chromecast: replaces CMA synchronization flag with finer-grained enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates MediaPipelineHost Created 5 years, 11 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
« no previous file with comments | « no previous file | chromecast/media/cma/backend/media_pipeline_device_params.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chromecast/browser/media/media_pipeline_host.h" 5 #include "chromecast/browser/media/media_pipeline_host.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 media_track_map_.clear(); 50 media_track_map_.clear();
51 } 51 }
52 52
53 void MediaPipelineHost::Initialize( 53 void MediaPipelineHost::Initialize(
54 LoadType load_type, 54 LoadType load_type,
55 const MediaPipelineClient& client) { 55 const MediaPipelineClient& client) {
56 DCHECK(thread_checker_.CalledOnValidThread()); 56 DCHECK(thread_checker_.CalledOnValidThread());
57 media_pipeline_.reset(new MediaPipelineImpl()); 57 media_pipeline_.reset(new MediaPipelineImpl());
58 MediaPipelineDeviceParams default_parameters; 58 MediaPipelineDeviceParams default_parameters;
59 if (load_type == kLoadTypeMediaStream) 59 if (load_type == kLoadTypeMediaStream)
60 default_parameters.disable_synchronization = true; 60 default_parameters.sync_type = MediaPipelineDeviceParams::kModeIgnorePts;
61 media_pipeline_->Initialize( 61 media_pipeline_->Initialize(
62 load_type, 62 load_type,
63 CreateMediaPipelineDevice(default_parameters).Pass()); 63 CreateMediaPipelineDevice(default_parameters).Pass());
64 media_pipeline_->SetClient(client); 64 media_pipeline_->SetClient(client);
65 } 65 }
66 66
67 void MediaPipelineHost::SetAvPipe( 67 void MediaPipelineHost::SetAvPipe(
68 TrackId track_id, 68 TrackId track_id,
69 scoped_ptr<base::SharedMemory> shared_mem, 69 scoped_ptr<base::SharedMemory> shared_mem,
70 const base::Closure& pipe_read_activity_cb, 70 const base::Closure& pipe_read_activity_cb,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 return; 169 return;
170 170
171 MediaTrackHost* media_track_host = it->second; 171 MediaTrackHost* media_track_host = it->second;
172 if (!media_track_host->pipe_write_cb.is_null()) 172 if (!media_track_host->pipe_write_cb.is_null())
173 media_track_host->pipe_write_cb.Run(); 173 media_track_host->pipe_write_cb.Run();
174 } 174 }
175 175
176 } // namespace media 176 } // namespace media
177 } // namespace chromecast 177 } // namespace chromecast
178 178
OLDNEW
« no previous file with comments | « no previous file | chromecast/media/cma/backend/media_pipeline_device_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698