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

Side by Side Diff: remoting/test/test_video_renderer.cc

Issue 2101833002: [Remoting Android] DisplayUpdaterFactory cleanups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's Feedback Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "remoting/test/test_video_renderer.h" 5 #include "remoting/test/test_video_renderer.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 287
288 TestVideoRenderer::~TestVideoRenderer() { 288 TestVideoRenderer::~TestVideoRenderer() {
289 DCHECK(thread_checker_.CalledOnValidThread()); 289 DCHECK(thread_checker_.CalledOnValidThread());
290 290
291 video_decode_task_runner_->DeleteSoon(FROM_HERE, core_.release()); 291 video_decode_task_runner_->DeleteSoon(FROM_HERE, core_.release());
292 292
293 // The thread's message loop will run until it runs out of work. 293 // The thread's message loop will run until it runs out of work.
294 video_decode_thread_->Stop(); 294 video_decode_thread_->Stop();
295 } 295 }
296 296
297 bool TestVideoRenderer::Initialize(const ClientContext& client_context,
298 protocol::PerformanceTracker* perf_tracker) {
299 return true;
300 }
301
297 void TestVideoRenderer::OnSessionConfig(const protocol::SessionConfig& config) { 302 void TestVideoRenderer::OnSessionConfig(const protocol::SessionConfig& config) {
298 DCHECK(thread_checker_.CalledOnValidThread()); 303 DCHECK(thread_checker_.CalledOnValidThread());
299 304
300 VLOG(2) << "TestVideoRenderer::OnSessionConfig() Called"; 305 VLOG(2) << "TestVideoRenderer::OnSessionConfig() Called";
301 protocol::ChannelConfig::Codec codec = config.video_config().codec; 306 protocol::ChannelConfig::Codec codec = config.video_config().codec;
302 SetCodecForDecoding(codec); 307 SetCodecForDecoding(codec);
303 } 308 }
304 309
305 protocol::VideoStub* TestVideoRenderer::GetVideoStub() { 310 protocol::VideoStub* TestVideoRenderer::GetVideoStub() {
306 DCHECK(thread_checker_.CalledOnValidThread()); 311 DCHECK(thread_checker_.CalledOnValidThread());
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 DCHECK(thread_checker_.CalledOnValidThread()); 379 DCHECK(thread_checker_.CalledOnValidThread());
375 380
376 video_decode_task_runner_->PostTask( 381 video_decode_task_runner_->PostTask(
377 FROM_HERE, 382 FROM_HERE,
378 base::Bind(&Core::save_frame_data_to_disk, base::Unretained(core_.get()), 383 base::Bind(&Core::save_frame_data_to_disk, base::Unretained(core_.get()),
379 save_frame_data_to_disk)); 384 save_frame_data_to_disk));
380 } 385 }
381 386
382 } // namespace test 387 } // namespace test
383 } // namespace remoting 388 } // namespace remoting
OLDNEW
« remoting/client/jni/jni_display_handler.cc ('K') | « remoting/test/test_video_renderer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698