[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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user