Merge "[HWUI] Hook up ANativeWindow_allocateBuffers"

This commit is contained in:
TreeHugger Robot
2020-02-01 06:32:08 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 3 deletions

View File

@@ -205,7 +205,8 @@ void CanvasContext::setStopped(bool stopped) {
void CanvasContext::allocateBuffers() {
if (mNativeSurface) {
mNativeSurface->allocateBuffers();
ANativeWindow* anw = mNativeSurface->getNativeWindow();
ANativeWindow_allocateBuffers(anw);
}
}

View File

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