am e4d3b06b: Merge "get rid of uses of getISurfaceTexture"
* commit 'e4d3b06b6ddb055739b8b2aa82ffc7840588253a': get rid of uses of getISurfaceTexture
This commit is contained in:
@@ -116,8 +116,8 @@ jobject android_view_Surface_createFromIGraphicBufferProducer(JNIEnv* env,
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
static bool isSurfaceValid(const sp<Surface>& sur) {
|
||||
return sur != 0 && sur->getISurfaceTexture() != 0;
|
||||
static inline bool isSurfaceValid(const sp<Surface>& sur) {
|
||||
return Surface::isValid(sur);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user