diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-02-14 12:04:48 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-02-14 12:04:48 +0000 |
commit | bc12e084cd4d81b3c051fe717d80a8789b556743 (patch) | |
tree | 78776c8f6bfc60a208352d735dcd59bb207efb33 /libs/hwui/renderthread | |
parent | f45a4b7da9fa4922148b1e245e65b079140e126e (diff) | |
parent | c9d5f3d952b5151f7562fb52c5aa7b05eecf1955 (diff) |
Merge "[ANativeWindow] Rename allocateBuffers to tryAllocateBuffers"
Diffstat (limited to 'libs/hwui/renderthread')
-rw-r--r-- | libs/hwui/renderthread/CanvasContext.cpp | 3 |
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()); } } |