summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread
diff options
context:
space:
mode:
authorAlec Mouri <alecmouri@google.com>2020-02-13 13:58:25 -0800
committerAlec Mouri <alecmouri@google.com>2020-02-13 13:58:50 -0800
commitc9d5f3d952b5151f7562fb52c5aa7b05eecf1955 (patch)
tree0f719b63dbcffbff1ef14518deb46b0d3ebe173d /libs/hwui/renderthread
parent4d5b0be4814cdef56872e61e7d04b8a81328ad2e (diff)
[ANativeWindow] Rename allocateBuffers to tryAllocateBuffers
Renaming was done in response to API feedback. Bug: 148962594 Test: builds Change-Id: I05b3e99800d967dda243b6e7af48f1b645909bdd
Diffstat (limited to 'libs/hwui/renderthread')
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp
index 91f9447a3d59..1df3336bb5e5 100644
--- a/libs/hwui/renderthread/CanvasContext.cpp
+++ b/libs/hwui/renderthread/CanvasContext.cpp
@@ -204,8 +204,7 @@ void CanvasContext::setStopped(bool stopped) {
void CanvasContext::allocateBuffers() {
if (mNativeSurface) {
- ANativeWindow* anw = mNativeSurface->getNativeWindow();
- ANativeWindow_allocateBuffers(anw);
+ ANativeWindow_tryAllocateBuffers(mNativeSurface->getNativeWindow());
}
}