Home | History | Annotate | Download | only in plugins

Lines Matching defs:surface

35 #include <surfaceflinger/Surface.h>
42 // used to cache JNI method and field IDs for Surface Objects
50 static inline sp<Surface> getSurface(JNIEnv* env, jobject view) {
63 "()Landroid/view/Surface;");
65 jclass surfaceClass = env->FindClass("android/view/Surface");
77 jobject surface = env->CallObjectMethod(holder, gSurfaceJavaGlue.getSurface);
78 jint surfacePointer = env->GetIntField(surface, gSurfaceJavaGlue.surfacePointer);
81 env->DeleteLocalRef(surface);
83 return sp<Surface>((Surface*) surfacePointer);
99 sp<Surface> surface = getSurface(env, surfaceView);
101 if (!bitmap || !Surface::isValid(surface)) {
115 Surface::SurfaceInfo info;
116 status_t err = surface->lock(&info, &dirtyRegion);
121 // the surface may have expanded the dirty region so we must to pass that
153 sp<Surface> surface = getSurface(env, surfaceView);
155 if (!Surface::isValid(surface)) {
159 surface->unlockAndPost();