Loading libs/nativewindow/ANativeWindow.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -331,3 +331,7 @@ int ANativeWindow_setQueueBufferInterceptor(ANativeWindow* window, void ANativeWindow_allocateBuffers(ANativeWindow* window) { window->perform(window, NATIVE_WINDOW_ALLOCATE_BUFFERS); } int64_t ANativeWindow_getNextFrameId(ANativeWindow* window) { return query64(window, NATIVE_WINDOW_GET_NEXT_FRAME_ID); } libs/nativewindow/include/apex/window.h +7 −0 Original line number Diff line number Diff line Loading @@ -212,4 +212,11 @@ int ANativeWindow_setDequeueTimeout(ANativeWindow* window, int64_t timeout); */ void ANativeWindow_allocateBuffers(ANativeWindow* window); /** * Retrieves an identifier for the next frame to be queued by this window. * * \return -errno on error, otherwise returns the next frame id. */ int64_t ANativeWindow_getNextFrameId(ANativeWindow* window); __END_DECLS libs/nativewindow/libnativewindow.map.txt +1 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ LIBNATIVEWINDOW { ANativeWindow_getLastDequeueDuration; # apex # introduced=30 ANativeWindow_getLastDequeueStartTime; # apex # introduced=30 ANativeWindow_getLastQueueDuration; # apex # introduced=30 ANativeWindow_getNextFrameId; # apex # introduced=30 ANativeWindow_getWidth; ANativeWindow_lock; ANativeWindow_query; # llndk Loading Loading
libs/nativewindow/ANativeWindow.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -331,3 +331,7 @@ int ANativeWindow_setQueueBufferInterceptor(ANativeWindow* window, void ANativeWindow_allocateBuffers(ANativeWindow* window) { window->perform(window, NATIVE_WINDOW_ALLOCATE_BUFFERS); } int64_t ANativeWindow_getNextFrameId(ANativeWindow* window) { return query64(window, NATIVE_WINDOW_GET_NEXT_FRAME_ID); }
libs/nativewindow/include/apex/window.h +7 −0 Original line number Diff line number Diff line Loading @@ -212,4 +212,11 @@ int ANativeWindow_setDequeueTimeout(ANativeWindow* window, int64_t timeout); */ void ANativeWindow_allocateBuffers(ANativeWindow* window); /** * Retrieves an identifier for the next frame to be queued by this window. * * \return -errno on error, otherwise returns the next frame id. */ int64_t ANativeWindow_getNextFrameId(ANativeWindow* window); __END_DECLS
libs/nativewindow/libnativewindow.map.txt +1 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ LIBNATIVEWINDOW { ANativeWindow_getLastDequeueDuration; # apex # introduced=30 ANativeWindow_getLastDequeueStartTime; # apex # introduced=30 ANativeWindow_getLastQueueDuration; # apex # introduced=30 ANativeWindow_getNextFrameId; # apex # introduced=30 ANativeWindow_getWidth; ANativeWindow_lock; ANativeWindow_query; # llndk Loading