summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/DrawFrameTask.cpp
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2016-11-04 10:46:18 -0400
committerDerek Sollenberger <djsollen@google.com>2016-11-07 10:05:56 -0500
commitb7d34b64dd32e3d84bd43344c9c3d9ad098129af (patch)
treebf7125fc5a53b95f4bffd81cc724eef6b478e5fa /libs/hwui/renderthread/DrawFrameTask.cpp
parent3d36fac2350cbce6dbdcd7502dc9adb0210d3d8b (diff)
Refactor pin/unpinImages to work across pipelines.
Test: existing CTS tests still pass Change-Id: Ib2607e9853396bad42f298829b5c5da0d210af32
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
-rw-r--r--libs/hwui/renderthread/DrawFrameTask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/DrawFrameTask.cpp b/libs/hwui/renderthread/DrawFrameTask.cpp
index e3b6dc6fd9fe..4ff54a5299f8 100644
--- a/libs/hwui/renderthread/DrawFrameTask.cpp
+++ b/libs/hwui/renderthread/DrawFrameTask.cpp
@@ -119,7 +119,7 @@ bool DrawFrameTask::syncFrameState(TreeInfo& info) {
int64_t vsync = mFrameInfo[static_cast<int>(FrameInfoIndex::Vsync)];
mRenderThread->timeLord().vsyncReceived(vsync);
bool canDraw = mContext->makeCurrent();
- Caches::getInstance().textureCache.resetMarkInUse(mContext);
+ mContext->unpinImages();
for (size_t i = 0; i < mLayers.size(); i++) {
mLayers[i]->apply();