diff options
author | Jim Van Verth <jvanverth@google.com> | 2017-09-27 12:59:45 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-27 17:22:28 +0000 |
commit | 62ea0cd4a08233156eb06813d97701556533148f (patch) | |
tree | 29aabbe72afc8ca03d17fb03bce9d484b5a81407 /src/gpu/GrOnFlushResourceProvider.h | |
parent | aaab3c73575d5502ae345dd71cf8748c2070ffda (diff) |
Adjust atlas tracking to get better usage.
Only overwrite LRU plots if they've aged out or we're at max pagecount.
Make sure we only increment flush counts if the atlas has been used.
Bug: skia:3550
Change-Id: I5c41e20f6c7db818dc08629d5f74401552ddf32f
Reviewed-on: https://skia-review.googlesource.com/51243
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrOnFlushResourceProvider.h')
-rw-r--r-- | src/gpu/GrOnFlushResourceProvider.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrOnFlushResourceProvider.h b/src/gpu/GrOnFlushResourceProvider.h index 04f93b8618..f57288c75c 100644 --- a/src/gpu/GrOnFlushResourceProvider.h +++ b/src/gpu/GrOnFlushResourceProvider.h @@ -49,11 +49,11 @@ public: virtual void postFlush(GrDrawOpUploadToken startTokenForNextFlush) {} /** - * Tells the callback owner to hold onto this object when freeing GPU resources - * - * In particular, GrDrawingManager::freeGPUResources() deletes all the path renderers. - * Any OnFlushCallbackObject associated with a path renderer will need to be deleted. - */ + * Tells the callback owner to hold onto this object when freeing GPU resources + * + * In particular, GrDrawingManager::freeGPUResources() deletes all the path renderers. + * Any OnFlushCallbackObject associated with a path renderer will need to be deleted. + */ virtual bool retainOnFreeGpuResources() { return false; } private: |