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

Side by Side Diff: remoting/client/jni/jni_video_renderer.cc

Issue 2113523007: More cleanups in FrameStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android 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 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
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
OLDNEW
« no previous file with comments | « remoting/client/jni/jni_video_renderer.h ('k') | remoting/client/plugin/pepper_video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698