summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/CanvasContext.cpp
diff options
context:
space:
mode:
authorAlec Mouri <alecmouri@google.com>2019-12-10 15:09:01 -0800
committerAlec Mouri <alecmouri@google.com>2020-02-03 10:25:24 -0800
commit80c7ef17dbc182d381715f37fe6566146611a1da (patch)
tree0a8ac45d39c25136f8db78aef66550933c3581c2 /libs/hwui/renderthread/CanvasContext.cpp
parentdf2457279f786d22763fe9ef76650c33635197fc (diff)
[HWUI] Use ANativeWindow_getNextFrameId api.
This is part of the work to move away from gui/Surface and onto ANativeWindow in HWUI. Bug: 137012798 Test: builds Change-Id: I5862d7833b583b8295d1677e725ed58d97808b27
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.cpp')
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp
index 699b96a685c9..c1435d1ea2d5 100644
--- a/libs/hwui/renderthread/CanvasContext.cpp
+++ b/libs/hwui/renderthread/CanvasContext.cpp
@@ -700,7 +700,7 @@ void CanvasContext::enqueueFrameWork(std::function<void()>&& func) {
int64_t CanvasContext::getFrameNumber() {
// mFrameNumber is reset to -1 when the surface changes or we swap buffers
if (mFrameNumber == -1 && mNativeSurface.get()) {
- mFrameNumber = static_cast<int64_t>(mNativeSurface->getNextFrameNumber());
+ mFrameNumber = ANativeWindow_getNextFrameId(mNativeSurface->getNativeWindow());
}
return mFrameNumber;
}