[ANativeWindow] Rename allocateBuffers to tryAllocateBuffers

Renaming was done in response to API feedback.

Bug: 148962594
Test: builds
Change-Id: I05b3e99800d967dda243b6e7af48f1b645909bdd
This commit is contained in:
Alec Mouri
2020-02-13 13:58:25 -08:00
parent 4d5b0be481
commit c9d5f3d952

View File

@@ -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());
}
}