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

Side by Side Diff: blimp/client/app/android/blimp_view.h

Issue 1925863003: Changed Blimp client to start with white screen before drawing contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 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 #ifndef BLIMP_CLIENT_APP_ANDROID_BLIMP_VIEW_H_ 5 #ifndef BLIMP_CLIENT_APP_ANDROID_BLIMP_VIEW_H_
6 #define BLIMP_CLIENT_APP_ANDROID_BLIMP_VIEW_H_ 6 #define BLIMP_CLIENT_APP_ANDROID_BLIMP_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 jfloat orientation_1, 80 jfloat orientation_1,
81 jfloat tilt_0, 81 jfloat tilt_0,
82 jfloat tilt_1, 82 jfloat tilt_1,
83 jfloat raw_pos_x, 83 jfloat raw_pos_x,
84 jfloat raw_pos_y, 84 jfloat raw_pos_y,
85 jint android_tool_type_0, 85 jint android_tool_type_0,
86 jint android_tool_type_1, 86 jint android_tool_type_1,
87 jint android_button_state, 87 jint android_button_state,
88 jint android_meta_state); 88 jint android_meta_state);
89 89
90 void OnSwapBuffersCompleted();
91
90 private: 92 private:
91 virtual ~BlimpView(); 93 virtual ~BlimpView();
92 94
93 void ReleaseAcceleratedWidget(); 95 void ReleaseAcceleratedWidget();
94 96
95 // Reference to the Java object which owns this class. 97 // Reference to the Java object which owns this class.
96 base::android::ScopedJavaGlobalRef<jobject> java_obj_; 98 base::android::ScopedJavaGlobalRef<jobject> java_obj_;
97 99
98 const float device_scale_factor_; 100 const float device_scale_factor_;
99 101
100 std::unique_ptr<BlimpCompositorManagerAndroid> compositor_manager_; 102 std::unique_ptr<BlimpCompositorManagerAndroid> compositor_manager_;
101 103
102 // The format of the current surface owned by |compositor_|. See 104 // The format of the current surface owned by |compositor_|. See
103 // android.graphics.PixelFormat.java. 105 // android.graphics.PixelFormat.java.
104 int current_surface_format_; 106 int current_surface_format_;
105 107
106 gfx::AcceleratedWidget window_; 108 gfx::AcceleratedWidget window_;
107 109
108 DISALLOW_COPY_AND_ASSIGN(BlimpView); 110 DISALLOW_COPY_AND_ASSIGN(BlimpView);
109 }; 111 };
110 112
111 } // namespace client 113 } // namespace client
112 } // namespace blimp 114 } // namespace blimp
113 115
114 #endif // BLIMP_CLIENT_APP_ANDROID_BLIMP_VIEW_H_ 116 #endif // BLIMP_CLIENT_APP_ANDROID_BLIMP_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698