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

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

Issue 1559043004: Add GetFrameConsumer() in VideoRenderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_video_renderer
Patch Set: Created 4 years, 11 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 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 "remoting/client/jni/jni_frame_consumer.h" 5 #include "remoting/client/jni/jni_frame_consumer.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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 done)); 108 done));
109 } 109 }
110 110
111 void JniFrameConsumer::OnFrameRendered(const base::Closure& done) { 111 void JniFrameConsumer::OnFrameRendered(const base::Closure& done) {
112 DCHECK(jni_runtime_->network_task_runner()->BelongsToCurrentThread()); 112 DCHECK(jni_runtime_->network_task_runner()->BelongsToCurrentThread());
113 113
114 if (!done.is_null()) 114 if (!done.is_null())
115 done.Run(); 115 done.Run();
116 } 116 }
117 117
118 FrameConsumer::PixelFormat JniFrameConsumer::GetPixelFormat() { 118 protocol::FrameConsumer::PixelFormat JniFrameConsumer::GetPixelFormat() {
119 return FORMAT_RGBA; 119 return FORMAT_RGBA;
120 } 120 }
121 121
122 } // namespace remoting 122 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/jni/jni_frame_consumer.h ('k') | remoting/client/plugin/pepper_video_renderer_2d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698