From 069d51619a96c59ac2c6687e6bfb0a201585cc12 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 12 Apr 2010 16:24:57 -0700 Subject: 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 --- WebKit/android/plugins/ANPSurfaceInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'WebKit/android/plugins') 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 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); -- cgit v1.1