Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9d5f3d9 authored by Alec Mouri's avatar Alec Mouri
Browse files

[ANativeWindow] Rename allocateBuffers to tryAllocateBuffers

Renaming was done in response to API feedback.

Bug: 148962594
Test: builds
Change-Id: I05b3e99800d967dda243b6e7af48f1b645909bdd
parent 4d5b0be4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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());
    }
}