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

Unified 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: merge origin/master 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 side-by-side diff with in-line comments
Download patch
Index: blimp/client/app/android/blimp_view.h
diff --git a/blimp/client/app/android/blimp_view.h b/blimp/client/app/android/blimp_view.h
index 4e01934ec942c216af2f1d1faaf8354166cf89b3..7c5e1593bbbf0580b79b73915c1c1812eb6724e9 100644
--- a/blimp/client/app/android/blimp_view.h
+++ b/blimp/client/app/android/blimp_view.h
@@ -9,6 +9,7 @@
#include "base/android/jni_android.h"
#include "base/macros.h"
+#include "blimp/client/app/android/blimp_compositor_manager_android.h"
#include "ui/gfx/native_widget_types.h"
namespace gfx {
@@ -18,13 +19,12 @@ class Size;
namespace blimp {
namespace client {
-class BlimpCompositorManagerAndroid;
class RenderWidgetFeature;
// The native component of org.chromium.blimp.BlimpView. This builds and
// maintains a BlimpCompositorAndroid and handles notifying the compositor of
// SurfaceView surface changes (size, creation, destruction, etc.).
-class BlimpView {
+class BlimpView : public BlimpCompositorManagerClient {
public:
static bool RegisterJni(JNIEnv* env);
@@ -92,6 +92,9 @@ class BlimpView {
void ReleaseAcceleratedWidget();
+ // BlimpCompositorManagerClient implementation.
+ void OnSwapBuffersCompleted() override;
+
// Reference to the Java object which owns this class.
base::android::ScopedJavaGlobalRef<jobject> java_obj_;
« no previous file with comments | « blimp/client/app/android/blimp_compositor_manager_android.cc ('k') | blimp/client/app/android/blimp_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698