| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/protocol/fake_video_renderer.h" | 5 #include "remoting/protocol/fake_video_renderer.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 FrameConsumer::PixelFormat FakeFrameConsumer::GetPixelFormat() { | 61 FrameConsumer::PixelFormat FakeFrameConsumer::GetPixelFormat() { |
| 62 CHECK(thread_checker_.CalledOnValidThread()); | 62 CHECK(thread_checker_.CalledOnValidThread()); |
| 63 return FORMAT_BGRA; | 63 return FORMAT_BGRA; |
| 64 } | 64 } |
| 65 | 65 |
| 66 FakeVideoRenderer::FakeVideoRenderer() {} | 66 FakeVideoRenderer::FakeVideoRenderer() {} |
| 67 FakeVideoRenderer::~FakeVideoRenderer() {} | 67 FakeVideoRenderer::~FakeVideoRenderer() {} |
| 68 | 68 |
| 69 bool FakeVideoRenderer::Initialize(const ClientContext& client_context, |
| 70 protocol::PerformanceTracker* perf_tracker) { |
| 71 return true; |
| 72 } |
| 73 |
| 69 void FakeVideoRenderer::OnSessionConfig(const SessionConfig& config) {} | 74 void FakeVideoRenderer::OnSessionConfig(const SessionConfig& config) {} |
| 70 | 75 |
| 71 FakeVideoStub* FakeVideoRenderer::GetVideoStub() { | 76 FakeVideoStub* FakeVideoRenderer::GetVideoStub() { |
| 72 CHECK(thread_checker_.CalledOnValidThread()); | 77 CHECK(thread_checker_.CalledOnValidThread()); |
| 73 return &video_stub_; | 78 return &video_stub_; |
| 74 } | 79 } |
| 75 | 80 |
| 76 FakeFrameConsumer* FakeVideoRenderer::GetFrameConsumer() { | 81 FakeFrameConsumer* FakeVideoRenderer::GetFrameConsumer() { |
| 77 CHECK(thread_checker_.CalledOnValidThread()); | 82 CHECK(thread_checker_.CalledOnValidThread()); |
| 78 return &frame_consumer_; | 83 return &frame_consumer_; |
| 79 } | 84 } |
| 80 | 85 |
| 81 } // namespace protocol | 86 } // namespace protocol |
| 82 } // namespace remoting | 87 } // namespace remoting |
| OLD | NEW |