Merge "[HWUI] Hook up ANativeWindow_allocateBuffers"
This commit is contained in:
committed by
Android (Google) Code Review
commit
eaf4ca4c7b
@@ -205,7 +205,8 @@ void CanvasContext::setStopped(bool stopped) {
|
||||
|
||||
void CanvasContext::allocateBuffers() {
|
||||
if (mNativeSurface) {
|
||||
mNativeSurface->allocateBuffers();
|
||||
ANativeWindow* anw = mNativeSurface->getNativeWindow();
|
||||
ANativeWindow_allocateBuffers(anw);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user