diff options
author | Mathias Agopian <mathias@google.com> | 2010-04-12 16:24:57 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-04-12 16:28:48 -0700 |
commit | 069d51619a96c59ac2c6687e6bfb0a201585cc12 (patch) | |
tree | 80c829378d3b66ef472326e3042d1a790d39c56e /WebKit/android/plugins | |
parent | 13aa9bd5f2bbe6e503e6789ed9fc331fe106b5ea (diff) | |
download | external_webkit-069d51619a96c59ac2c6687e6bfb0a201585cc12.zip external_webkit-069d51619a96c59ac2c6687e6bfb0a201585cc12.tar.gz external_webkit-069d51619a96c59ac2c6687e6bfb0a201585cc12.tar.bz2 |
don't hardcode "mSurface" throughout our source code
this is used in a few places to get access to the android.view.Surface
native surface. use a macro instead. Also rename the field to mNativeSurface.
Change-Id: Icb894b09b3c9a4878b4bfb4dd24f752fa5f0dcde
Diffstat (limited to 'WebKit/android/plugins')
-rw-r--r-- | WebKit/android/plugins/ANPSurfaceInterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebKit/android/plugins/ANPSurfaceInterface.cpp b/WebKit/android/plugins/ANPSurfaceInterface.cpp index cb32ed5..c78fe32 100644 --- a/WebKit/android/plugins/ANPSurfaceInterface.cpp +++ b/WebKit/android/plugins/ANPSurfaceInterface.cpp @@ -64,7 +64,7 @@ static inline sp<Surface> getSurface(JNIEnv* env, jobject view) { jclass surfaceClass = env->FindClass("android/view/Surface"); gSurfaceJavaGlue.surfacePointer = env->GetFieldID(surfaceClass, - "mSurface", "I"); + ANDROID_VIEW_SURFACE_JNI_ID, "I"); env->DeleteLocalRef(surfaceClass); env->DeleteLocalRef(surfaceViewClass); |