diff options
author | 2016-09-22 12:42:11 -0700 | |
---|---|---|
committer | 2016-09-22 12:42:11 -0700 | |
commit | e2e87f3484e5524dbfd6c01f402136738d1d434b (patch) | |
tree | 6562a880cb3c1bc8d028cb78e188a7ba01b4c205 /include/gpu/GrGpuResource.h | |
parent | 5745d795a15333f80c7526bf3643212773c5b3b7 (diff) |
Change implementation of flush-count based GrGpuResource purging
Change default to approx 30seconds (given some API usage assumptions)
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2361093002
Review-Url: https://codereview.chromium.org/2361093002
Diffstat (limited to 'include/gpu/GrGpuResource.h')
-rw-r--r-- | include/gpu/GrGpuResource.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h index 9305c16758..46e48fc4ee 100644 --- a/include/gpu/GrGpuResource.h +++ b/include/gpu/GrGpuResource.h @@ -287,6 +287,7 @@ private: // This value reflects how recently this resource was accessed in the cache. This is maintained // by the cache. uint32_t fTimestamp; + uint32_t fExternalFlushCntWhenBecamePurgeable; static const size_t kInvalidGpuMemorySize = ~static_cast<size_t>(0); GrScratchKey fScratchKey; |