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

Side by Side Diff: media/cast/cast_environment.cc

Issue 116623002: Cast: Adding support for GPU accelerated encode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/cast/cast_environment.h" 5 #include "media/cast/cast_environment.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 using base::TaskRunner; 9 using base::TaskRunner;
10 10
(...skipping 14 matching lines...) Expand all
25 audio_decode_thread_proxy_(audio_decode_thread_proxy), 25 audio_decode_thread_proxy_(audio_decode_thread_proxy),
26 video_encode_thread_proxy_(video_encode_thread_proxy), 26 video_encode_thread_proxy_(video_encode_thread_proxy),
27 video_decode_thread_proxy_(video_decode_thread_proxy), 27 video_decode_thread_proxy_(video_decode_thread_proxy),
28 logging_(new LoggingImpl(clock, main_thread_proxy, config)) { 28 logging_(new LoggingImpl(clock, main_thread_proxy, config)) {
29 DCHECK(main_thread_proxy) << "Main thread required"; 29 DCHECK(main_thread_proxy) << "Main thread required";
30 } 30 }
31 31
32 CastEnvironment::~CastEnvironment() {} 32 CastEnvironment::~CastEnvironment() {}
33 33
34 bool CastEnvironment::PostTask(ThreadId identifier, 34 bool CastEnvironment::PostTask(ThreadId identifier,
35 const tracked_objects::Location& from_here, 35 const tracked_objects::Location& from_here,
36 const base::Closure& task) { 36 const base::Closure& task) {
37 scoped_refptr<TaskRunner> task_runner = 37 scoped_refptr<TaskRunner> task_runner =
38 GetMessageTaskRunnerForThread(identifier); 38 GetMessageTaskRunnerForThread(identifier);
39 39
40 return task_runner->PostTask(from_here, task); 40 return task_runner->PostTask(from_here, task);
41 } 41 }
42 42
43 bool CastEnvironment::PostDelayedTask(ThreadId identifier, 43 bool CastEnvironment::PostDelayedTask(ThreadId identifier,
44 const tracked_objects::Location& from_here, 44 const tracked_objects::Location& from_here,
45 const base::Closure& task, 45 const base::Closure& task,
46 base::TimeDelta delay) { 46 base::TimeDelta delay) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 LoggingImpl* CastEnvironment::Logging() { 94 LoggingImpl* CastEnvironment::Logging() {
95 DCHECK(CurrentlyOn(CastEnvironment::MAIN)) << 95 DCHECK(CurrentlyOn(CastEnvironment::MAIN)) <<
96 "Must be called from main thread"; 96 "Must be called from main thread";
97 return logging_.get(); 97 return logging_.get();
98 } 98 }
99 99
100 } // namespace cast 100 } // namespace cast
101 } // namespace media 101 } // namespace media
OLDNEW
« media/cast/DEPS ('K') | « media/cast/cast_config.h ('k') | media/cast/cast_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698