diff options
author | Huihong Luo <huisinro@google.com> | 2021-01-15 14:27:06 -0800 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2021-02-16 17:38:12 +0100 |
commit | 5fdf7b8d26f3cd1a2f2fb8a441d40d33270d3b77 (patch) | |
tree | 42fb177d3a385875f96f560e5abc6ab35d034d7c /libs/hwui/renderthread/RenderProxy.h | |
parent | d8385e060c12acc21010956f4fbe57daa526a41a (diff) |
Add SurfaceControl to hwui
add a method, setSurfaceControl, for java layer to pass surface control to the render thread
Bug: 173671170
Test: call setSurfaceControl method in ViewRootImpl.java
Change-Id: I886a79c377938f19cf38b9058f2bec64e1439000
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.h')
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.h b/libs/hwui/renderthread/RenderProxy.h index a4adb16a930e..366d6b5a172c 100644 --- a/libs/hwui/renderthread/RenderProxy.h +++ b/libs/hwui/renderthread/RenderProxy.h @@ -20,6 +20,7 @@ #include <SkBitmap.h> #include <android/native_window.h> #include <cutils/compiler.h> +#include <android/surface_control.h> #include <utils/Functor.h> #include "../FrameMetricsObserver.h" @@ -72,6 +73,7 @@ public: void setName(const char* name); void setSurface(ANativeWindow* window, bool enableTimeout = true); + void setSurfaceControl(ASurfaceControl* surfaceControl); void allocateBuffers(); bool pause(); void setStopped(bool stopped); |