OLD | NEW |
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 Loading... |
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 |
OLD | NEW |