Loading libs/gui/SurfaceTextureClient.cpp +16 −0 Original line number Diff line number Diff line Loading @@ -399,13 +399,29 @@ int SurfaceTextureClient::dispatchSetBuffersGeometry(va_list args) { if (err != 0) { return err; } #ifdef QCOM_HARDWARE LOGV("Resetting the Buffer size to 0 after SET GEOMETRY"); err = performQcomOperation(NATIVE_WINDOW_SET_BUFFERS_SIZE, 0, 0, 0); if (err != 0) { return err; } #endif return setBuffersFormat(f); } int SurfaceTextureClient::dispatchSetBuffersDimensions(va_list args) { int w = va_arg(args, int); int h = va_arg(args, int); #ifndef QCOM_HARDWARE return setBuffersDimensions(w, h); #else int err = setBuffersDimensions(w, h); if (err != 0) { return err; } LOGV("Resetting the Buffer size to 0 after SET DIMENSIONS"); return performQcomOperation(NATIVE_WINDOW_SET_BUFFERS_SIZE, 0, 0, 0); #endif } int SurfaceTextureClient::dispatchSetBuffersFormat(va_list args) { Loading Loading
libs/gui/SurfaceTextureClient.cpp +16 −0 Original line number Diff line number Diff line Loading @@ -399,13 +399,29 @@ int SurfaceTextureClient::dispatchSetBuffersGeometry(va_list args) { if (err != 0) { return err; } #ifdef QCOM_HARDWARE LOGV("Resetting the Buffer size to 0 after SET GEOMETRY"); err = performQcomOperation(NATIVE_WINDOW_SET_BUFFERS_SIZE, 0, 0, 0); if (err != 0) { return err; } #endif return setBuffersFormat(f); } int SurfaceTextureClient::dispatchSetBuffersDimensions(va_list args) { int w = va_arg(args, int); int h = va_arg(args, int); #ifndef QCOM_HARDWARE return setBuffersDimensions(w, h); #else int err = setBuffersDimensions(w, h); if (err != 0) { return err; } LOGV("Resetting the Buffer size to 0 after SET DIMENSIONS"); return performQcomOperation(NATIVE_WINDOW_SET_BUFFERS_SIZE, 0, 0, 0); #endif } int SurfaceTextureClient::dispatchSetBuffersFormat(va_list args) { Loading