summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/CacheManager.cpp
diff options
context:
space:
mode:
authorGreg Daniel <egdaniel@google.com>2020-06-24 14:58:28 -0400
committerGreg Daniel <egdaniel@google.com>2020-06-24 14:58:28 -0400
commit01b0f4701de9eeaf1b9a065a2398abc41cbfe0e5 (patch)
treeebe218068fa43b87bc029384325f20281e80b3fc /libs/hwui/renderthread/CacheManager.cpp
parentb67120f9bdea0711d69fc1dc55ad9c7de1468dda (diff)
Remove old GrFlushFlag for cpu sync which isn't used anymore.
Test: manual Change-Id: Ib362f228c18b6c452e66debe6f6f076451670cd7
Diffstat (limited to 'libs/hwui/renderthread/CacheManager.cpp')
-rw-r--r--libs/hwui/renderthread/CacheManager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/hwui/renderthread/CacheManager.cpp b/libs/hwui/renderthread/CacheManager.cpp
index dc1612c429e3..b57dee4897ac 100644
--- a/libs/hwui/renderthread/CacheManager.cpp
+++ b/libs/hwui/renderthread/CacheManager.cpp
@@ -122,9 +122,7 @@ void CacheManager::trimMemory(TrimMemoryMode mode) {
// We must sync the cpu to make sure deletions of resources still queued up on the GPU actually
// happen.
- GrFlushInfo info;
- info.fFlags = kSyncCpu_GrFlushFlag;
- mGrContext->flush(info);
+ mGrContext->flush({});
mGrContext->submit(true);
}