| Index: blimp/client/app/android/blimp_view.cc
|
| diff --git a/blimp/client/app/android/blimp_view.cc b/blimp/client/app/android/blimp_view.cc
|
| index 37db8ed0de5ae31539dfedb12b0bf5f8ba7cbc4f..50bde2bd982fb621590725c77d8a3067abe87500 100644
|
| --- a/blimp/client/app/android/blimp_view.cc
|
| +++ b/blimp/client/app/android/blimp_view.cc
|
| @@ -32,7 +32,8 @@ static jlong Init(JNIEnv* env,
|
|
|
| return reinterpret_cast<intptr_t>(new BlimpView(
|
| env, jobj, gfx::Size(real_width, real_height), gfx::Size(width, height),
|
| - dp_to_px, client_session->GetRenderWidgetFeature()));
|
| + dp_to_px, client_session->GetRenderWidgetFeature(),
|
| + client_session->GetBlimpConnectionStatistics()));
|
| }
|
|
|
| // static
|
| @@ -45,7 +46,8 @@ BlimpView::BlimpView(JNIEnv* env,
|
| const gfx::Size& real_size,
|
| const gfx::Size& size,
|
| float dp_to_px,
|
| - RenderWidgetFeature* render_widget_feature)
|
| + RenderWidgetFeature* render_widget_feature,
|
| + BlimpConnectionStatistics* blimp_connection_statistics)
|
| : device_scale_factor_(dp_to_px),
|
| compositor_manager_(
|
| BlimpCompositorManagerAndroid::Create(real_size,
|
| @@ -53,7 +55,8 @@ BlimpView::BlimpView(JNIEnv* env,
|
| render_widget_feature,
|
| this)),
|
| current_surface_format_(0),
|
| - window_(gfx::kNullAcceleratedWidget) {
|
| + window_(gfx::kNullAcceleratedWidget),
|
| + blimp_connection_statistics_(blimp_connection_statistics) {
|
| java_obj_.Reset(env, jobj);
|
| }
|
|
|
| @@ -180,5 +183,10 @@ void BlimpView::OnSwapBuffersCompleted() {
|
| Java_BlimpView_onSwapBuffersCompleted(env, java_obj_.obj());
|
| }
|
|
|
| +void BlimpView::DidCommitAndDrawFrame() {
|
| + DCHECK(blimp_connection_statistics_);
|
| + blimp_connection_statistics_->Add(BlimpConnectionStatistics::COMMIT, 1);
|
| +}
|
| +
|
| } // namespace client
|
| } // namespace blimp
|
|
|