diff options
author | John Reck <jreck@google.com> | 2016-01-14 21:49:42 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-01-14 21:49:42 +0000 |
commit | cbc5bd57f0f528743fce5ec02b0739dc6368311f (patch) | |
tree | 45541b44b29965e05430cde89b2c5229eb7d7a14 /libs/hwui/renderthread/CanvasContext.cpp | |
parent | f6762aca4a353a17cf79723f8a69b625b9e27237 (diff) | |
parent | 38e0c32852e3b9d8ca4a9d3791577f52536419cb (diff) |
Merge "Track texture memory globally"
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.cpp')
-rw-r--r-- | libs/hwui/renderthread/CanvasContext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp index 24d43dfcbdf0..dd48a836f858 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp @@ -14,6 +14,7 @@ * limitations under the License. */ +#include <GpuMemoryTracker.h> #include "CanvasContext.h" #include "AnimationContext.h" @@ -497,6 +498,8 @@ void CanvasContext::draw() { mJankTracker.addFrame(*mCurrentFrameInfo); mRenderThread.jankTracker().addFrame(*mCurrentFrameInfo); + + GpuMemoryTracker::onFrameCompleted(); } // Called by choreographer to do an RT-driven animation |