Merge "get rid of uses of getISurfaceTexture"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e4d3b06b6d
@@ -112,8 +112,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