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/client/jni/jni_video_renderer.h" | 5 #include "remoting/client/jni/jni_video_renderer.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 DCHECK(jni_runtime_->network_task_runner()->BelongsToCurrentThread()); | 125 DCHECK(jni_runtime_->network_task_runner()->BelongsToCurrentThread()); |
126 | 126 |
127 if (!done.is_null()) | 127 if (!done.is_null()) |
128 done.Run(); | 128 done.Run(); |
129 } | 129 } |
130 | 130 |
131 protocol::FrameConsumer::PixelFormat JniVideoRenderer::GetPixelFormat() { | 131 protocol::FrameConsumer::PixelFormat JniVideoRenderer::GetPixelFormat() { |
132 return FORMAT_RGBA; | 132 return FORMAT_RGBA; |
133 } | 133 } |
134 | 134 |
| 135 bool JniVideoRenderer::Initialize( |
| 136 const ClientContext& context, |
| 137 protocol::FrameStatsConsumer* stats_consumer) { |
| 138 return software_video_renderer_.Initialize(context, stats_consumer); |
| 139 } |
| 140 |
135 void JniVideoRenderer::OnSessionConfig(const protocol::SessionConfig& config) { | 141 void JniVideoRenderer::OnSessionConfig(const protocol::SessionConfig& config) { |
136 return software_video_renderer_.OnSessionConfig(config); | 142 return software_video_renderer_.OnSessionConfig(config); |
137 } | 143 } |
138 | 144 |
139 protocol::VideoStub* JniVideoRenderer::GetVideoStub() { | 145 protocol::VideoStub* JniVideoRenderer::GetVideoStub() { |
140 return software_video_renderer_.GetVideoStub(); | 146 return software_video_renderer_.GetVideoStub(); |
141 } | 147 } |
142 | 148 |
143 protocol::FrameConsumer* JniVideoRenderer::GetFrameConsumer() { | 149 protocol::FrameConsumer* JniVideoRenderer::GetFrameConsumer() { |
144 return software_video_renderer_.GetFrameConsumer(); | 150 return software_video_renderer_.GetFrameConsumer(); |
145 } | 151 } |
146 | 152 |
147 bool JniVideoRenderer::Initialize(const ClientContext& context, | 153 protocol::FrameStatsConsumer* JniVideoRenderer::GetFrameStatsConsumer() { |
148 protocol::PerformanceTracker* perf_tracker) { | 154 return software_video_renderer_.GetFrameStatsConsumer(); |
149 return software_video_renderer_.Initialize(context, perf_tracker); | |
150 } | 155 } |
151 | 156 |
152 } // namespace remoting | 157 } // namespace remoting |
OLD | NEW |