diff options
author | Alec Mouri <alecmouri@google.com> | 2019-12-17 09:41:48 -0800 |
---|---|---|
committer | Alec Mouri <alecmouri@google.com> | 2020-02-13 13:28:36 -0800 |
commit | 8a82b141d1fda246a9353f04a1af09144334e451 (patch) | |
tree | 7306df528405ed0c96beaeb7d4c40a7ce18fd311 /libs/hwui/renderthread/RenderProxy.h | |
parent | 4d5b0be4814cdef56872e61e7d04b8a81328ad2e (diff) |
[HWUI] use ANativeWindow_getLastQueuedBuffer api
Bug: 137012798
Test: builds
Change-Id: Ic33a21a73b0579726f47c53cc102fb91b5ead0d6
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.h')
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.h b/libs/hwui/renderthread/RenderProxy.h index 4683e1d69019..ab0dd2bcc8f5 100644 --- a/libs/hwui/renderthread/RenderProxy.h +++ b/libs/hwui/renderthread/RenderProxy.h @@ -140,6 +140,10 @@ public: */ ANDROID_API void setRenderAheadDepth(int renderAhead); + // TODO: This api will need to take in an ANativeWindow instead, but the + // caller, ThreadedRenderer, doesn't have access to libandroid due to a + // circular dependency, so it can't use the JNI ANativeWindow methods. Once + // that is resolved then replace the surface type here. ANDROID_API static int copySurfaceInto(sp<Surface>& surface, int left, int top, int right, int bottom, SkBitmap* bitmap); ANDROID_API static void prepareToDraw(Bitmap& bitmap); |