aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrOnFlushResourceProvider.h
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2017-09-22 14:23:22 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-22 18:43:48 +0000
commit7cf59526c9b1ab3682e875d449200e51f3b6ff32 (patch)
tree33b8858809191162841f44c3833b555f34a96ba3 /src/gpu/GrOnFlushResourceProvider.h
parentc38548b3210e23090b0fa808cc0fdc16c8d55149 (diff)
Shrink GrDrawOpAtlases when no longer needed
Bug: skia:3550 Change-Id: I7b09aa2b0fd22ed99694f32f9f395392ef80e238 Reviewed-on: https://skia-review.googlesource.com/49901 Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrOnFlushResourceProvider.h')
-rw-r--r--src/gpu/GrOnFlushResourceProvider.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrOnFlushResourceProvider.h b/src/gpu/GrOnFlushResourceProvider.h
index e2c0b73075..08dd012c99 100644
--- a/src/gpu/GrOnFlushResourceProvider.h
+++ b/src/gpu/GrOnFlushResourceProvider.h
@@ -9,6 +9,7 @@
#define GrOnFlushResourceProvider_DEFINED
#include "GrTypes.h"
+#include "GrOpFlushState.h"
#include "GrResourceProvider.h"
#include "SkRefCnt.h"
#include "SkTArray.h"
@@ -43,9 +44,9 @@ public:
/**
* Called once flushing is complete and all ops indicated by preFlush have been executed and
- * released.
+ * released. startTokenForNextFlush can be used to track resources used in the current flush.
*/
- virtual void postFlush() {}
+ virtual void postFlush(GrDrawOpUploadToken startTokenForNextFlush) {}
private:
typedef SkRefCnt INHERITED;