Merge "get rid of uses of getISurfaceTexture"

This commit is contained in:
Mathias Agopian
2013-02-21 23:21:51 +00:00
committed by Android (Google) Code Review

View File

@@ -112,8 +112,8 @@ jobject android_view_Surface_createFromIGraphicBufferProducer(JNIEnv* env,
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
static bool isSurfaceValid(const sp<Surface>& sur) { static inline bool isSurfaceValid(const sp<Surface>& sur) {
return sur != 0 && sur->getISurfaceTexture() != 0; return Surface::isValid(sur);
} }
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------