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

Commit f3d3b4d8 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

get rid of uses of getISurfaceTexture

Change-Id: Ibb14327a2b7217994adaa91cc977b163a5509e4a
parent e91efaba
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);
}

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