Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4d3b06b authored by Mathias Agopian's avatar Mathias Agopian Committed by Android (Google) Code Review
Browse files

Merge "get rid of uses of getISurfaceTexture"

parents 6588a52e f3d3b4d8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
}

// ----------------------------------------------------------------------------