OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "blimp/client/app/android/blimp_view.h" | 5 #include "blimp/client/app/android/blimp_view.h" |
6 | 6 |
7 #include <android/native_window_jni.h> | 7 #include <android/native_window_jni.h> |
8 | 8 |
9 #include "blimp/client/app/android/blimp_client_session_android.h" | 9 #include "blimp/client/app/android/blimp_client_session_android.h" |
10 #include "jni/BlimpView_jni.h" | 10 #include "jni/BlimpView_jni.h" |
11 #include "ui/events/android/motion_event_android.h" | 11 #include "ui/events/android/motion_event_android.h" |
12 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
13 | 13 |
| 14 using base::android::JavaParamRef; |
| 15 |
14 namespace blimp { | 16 namespace blimp { |
15 namespace client { | 17 namespace client { |
16 | 18 |
17 static jlong Init(JNIEnv* env, | 19 static jlong Init(JNIEnv* env, |
18 const JavaParamRef<jobject>& jobj, | 20 const JavaParamRef<jobject>& jobj, |
19 const JavaParamRef<jobject>& blimp_client_session, | 21 const JavaParamRef<jobject>& blimp_client_session, |
20 jint real_width, | 22 jint real_width, |
21 jint real_height, | 23 jint real_height, |
22 jint width, | 24 jint width, |
23 jint height, | 25 jint height, |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 Java_BlimpView_onSwapBuffersCompleted(env, java_obj_.obj()); | 185 Java_BlimpView_onSwapBuffersCompleted(env, java_obj_.obj()); |
184 } | 186 } |
185 | 187 |
186 void BlimpView::DidCommitAndDrawFrame() { | 188 void BlimpView::DidCommitAndDrawFrame() { |
187 DCHECK(blimp_connection_statistics_); | 189 DCHECK(blimp_connection_statistics_); |
188 blimp_connection_statistics_->Add(BlimpConnectionStatistics::COMMIT, 1); | 190 blimp_connection_statistics_->Add(BlimpConnectionStatistics::COMMIT, 1); |
189 } | 191 } |
190 | 192 |
191 } // namespace client | 193 } // namespace client |
192 } // namespace blimp | 194 } // namespace blimp |
OLD | NEW |