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 "blimp/net/blimp_stats.h" | 10 #include "blimp/net/blimp_stats.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 raw_pos_x - pos_x_0, | 173 raw_pos_x - pos_x_0, |
174 raw_pos_y - pos_y_0, | 174 raw_pos_y - pos_y_0, |
175 pointer0, | 175 pointer0, |
176 pointer1); | 176 pointer1); |
177 | 177 |
178 return compositor_manager_->OnTouchEvent(event); | 178 return compositor_manager_->OnTouchEvent(event); |
179 } | 179 } |
180 | 180 |
181 void BlimpView::OnSwapBuffersCompleted() { | 181 void BlimpView::OnSwapBuffersCompleted() { |
182 JNIEnv* env = base::android::AttachCurrentThread(); | 182 JNIEnv* env = base::android::AttachCurrentThread(); |
183 Java_BlimpView_onSwapBuffersCompleted(env, java_obj_.obj()); | 183 Java_BlimpView_onSwapBuffersCompleted(env, java_obj_); |
184 } | 184 } |
185 | 185 |
186 void BlimpView::DidCommitAndDrawFrame() { | 186 void BlimpView::DidCommitAndDrawFrame() { |
187 BlimpStats::GetInstance()->Add(BlimpStats::COMMIT, 1); | 187 BlimpStats::GetInstance()->Add(BlimpStats::COMMIT, 1); |
188 } | 188 } |
189 | 189 |
190 } // namespace client | 190 } // namespace client |
191 } // namespace blimp | 191 } // namespace blimp |
OLD | NEW |