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

Commit eaf4ca4c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[HWUI] Hook up ANativeWindow_allocateBuffers"

parents 7ba51f4f c2a6537f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -205,7 +205,8 @@ void CanvasContext::setStopped(bool stopped) {

void CanvasContext::allocateBuffers() {
    if (mNativeSurface) {
        mNativeSurface->allocateBuffers();
        ANativeWindow* anw = mNativeSurface->getNativeWindow();
        ANativeWindow_allocateBuffers(anw);
    }
}

+0 −2
Original line number Diff line number Diff line
@@ -41,8 +41,6 @@ public:

    int reserveNext();

    void allocateBuffers() { mSurface->allocateBuffers(); }

    int query(int what, int* value) const { return mSurface->query(what, value); }

    uint64_t getNextFrameNumber() const { return mSurface->getNextFrameNumber(); }