From d47f7d8b5fe3a3861d7cbdc5f912235407823c8e Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Tue, 18 Dec 2012 09:48:38 -0800 Subject: Rename ISurfaceTexture and SurfaceTexture The C++ class names don't match what the classes do, so rename ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to GLConsumer. Bug 7736700 Change-Id: I08e677faf2ebb418ef131d0a8008e01037db0e50 --- media/mca/filterfw/jni/jni_gl_environment.cpp | 8 ++++---- media/mca/filterfw/jni/jni_gl_environment.h | 2 +- media/mca/filterfw/native/core/gl_env.cpp | 6 +++--- media/mca/filterfw/native/core/gl_env.h | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) (limited to 'media/mca') diff --git a/media/mca/filterfw/jni/jni_gl_environment.cpp b/media/mca/filterfw/jni/jni_gl_environment.cpp index 3c596a4..b64004e 100644 --- a/media/mca/filterfw/jni/jni_gl_environment.cpp +++ b/media/mca/filterfw/jni/jni_gl_environment.cpp @@ -23,7 +23,7 @@ #include #include "native/core/gl_env.h" -#include +#include #include #include #include @@ -33,7 +33,7 @@ using android::filterfw::GLEnv; using android::filterfw::WindowHandle; using android::MediaRecorder; using android::sp; -using android::ISurfaceTexture; +using android::IGraphicBufferProducer; using android::SurfaceTextureClient; @@ -284,10 +284,10 @@ jint Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceFromMediaRecorder( // Ask the mediarecorder to return a handle to a surfacemediasource // This will talk to the StageFrightRecorder via MediaRecorderClient // over binder calls - sp surfaceMS = mr->querySurfaceMediaSourceFromMediaServer(); + sp surfaceMS = mr->querySurfaceMediaSourceFromMediaServer(); if (surfaceMS == NULL) { ALOGE("GLEnvironment: Error- MediaRecorder returned a null \ - handle."); + handle."); return -1; } sp surfaceTC = new SurfaceTextureClient(surfaceMS); diff --git a/media/mca/filterfw/jni/jni_gl_environment.h b/media/mca/filterfw/jni/jni_gl_environment.h index af9c744..9dd7102 100644 --- a/media/mca/filterfw/jni/jni_gl_environment.h +++ b/media/mca/filterfw/jni/jni_gl_environment.h @@ -68,7 +68,7 @@ Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight(JNIEnv* env // The call to hook up the SurfaceMediaSource (in MediaServer) to the GL. // We get a sp from the MediaServer and talks to MediaServer // over a binder interface. GL hooked up to the MediaServer by using the native -// window created using the handle +// window created using the handle JNIEXPORT jint JNICALL Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceFromMediaRecorder( JNIEnv* env, diff --git a/media/mca/filterfw/native/core/gl_env.cpp b/media/mca/filterfw/native/core/gl_env.cpp index 738b8e0..8ed82e2 100644 --- a/media/mca/filterfw/native/core/gl_env.cpp +++ b/media/mca/filterfw/native/core/gl_env.cpp @@ -159,9 +159,9 @@ bool GLEnv::InitWithNewContext() { return false; } - // Create dummy surface using a SurfaceTexture - surfaceTexture_ = new SurfaceTexture(0); - window_ = new SurfaceTextureClient(static_cast >( + // Create dummy surface using a GLConsumer + surfaceTexture_ = new GLConsumer(0); + window_ = new SurfaceTextureClient(static_cast >( surfaceTexture_->getBufferQueue())); surfaces_[0] = SurfaceWindowPair(eglCreateWindowSurface(display(), config, window_.get(), NULL), NULL); diff --git a/media/mca/filterfw/native/core/gl_env.h b/media/mca/filterfw/native/core/gl_env.h index b61785f..3c87195 100644 --- a/media/mca/filterfw/native/core/gl_env.h +++ b/media/mca/filterfw/native/core/gl_env.h @@ -27,7 +27,7 @@ #include #include -#include +#include #include namespace android { @@ -236,8 +236,8 @@ class GLEnv { // Dummy surface for context sp window_; - // Dummy SurfaceTexture for context - sp surfaceTexture_; + // Dummy GLConsumer for context + sp surfaceTexture_; // The maximum surface id used. int max_surface_id_; -- cgit v1.1