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

Unified Diff: tools/viewer/sk_app/android/GLWindowContext_android.h

Issue 2050613003: Support resize in Android Viewer App (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: OpenGL Created 4 years, 6 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: tools/viewer/sk_app/android/GLWindowContext_android.h
diff --git a/tools/viewer/sk_app/android/GLWindowContext_android.h b/tools/viewer/sk_app/android/GLWindowContext_android.h
index 85e65beaa251b451cb41ab3d98d0cc33f178496c..fbfa19da8812ad313515cbb08beba7bd0feb32f0 100644
--- a/tools/viewer/sk_app/android/GLWindowContext_android.h
+++ b/tools/viewer/sk_app/android/GLWindowContext_android.h
@@ -8,6 +8,8 @@
#ifndef GLWindowContext_android_DEFINED
#define GLWindowContext_android_DEFINED
+#include <android/native_window_jni.h>
djsollen 2016/06/09 18:34:21 don't need this here. Just before the namespace l
+
#include "../GLWindowContext.h"
#include "Window_android.h"
@@ -32,6 +34,9 @@ private:
EGLDisplay fDisplay;
EGLContext fEGLContext;
EGLSurface fSurface;
+
+ // For setDisplayParams and resize which call onInitializeContext with null platformData
+ ANativeWindow* fNativeWindow = nullptr;
};

Powered by Google App Engine
This is Rietveld 408576698