summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/CanvasContext.cpp
diff options
context:
space:
mode:
authorAlec Mouri <alecmouri@google.com>2019-12-09 17:08:47 -0800
committerAlec Mouri <alecmouri@google.com>2020-01-30 18:28:48 -0800
commitc2a6537fb96b6af210167797f9037b0a39a3a11b (patch)
tree60c16fc0409ef0123b951074af540ee8207e70a8 /libs/hwui/renderthread/CanvasContext.cpp
parentf023a323de7629a9ccd50685a55c70494f907c75 (diff)
[HWUI] Hook up ANativeWindow_allocateBuffers
Bug: 137012798 Test: builds Change-Id: Iefe7b73470cb6229fc72d1a1aa33eceb827f527c
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.cpp')
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp
index 096e25344f47..699b96a685c9 100644
--- a/libs/hwui/renderthread/CanvasContext.cpp
+++ b/libs/hwui/renderthread/CanvasContext.cpp
@@ -205,7 +205,8 @@ void CanvasContext::setStopped(bool stopped) {
void CanvasContext::allocateBuffers() {
if (mNativeSurface) {
- mNativeSurface->allocateBuffers();
+ ANativeWindow* anw = mNativeSurface->getNativeWindow();
+ ANativeWindow_allocateBuffers(anw);
}
}