aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawingManager.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-11-16 07:52:08 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-16 16:35:57 +0000
commiteafd48af63aef270cbea139547bb4fa8a591748d (patch)
treec59febed663b2e00ab9af5eb8ad239a3efded290 /src/gpu/GrDrawingManager.h
parent5627d65146cb92624b682389e017d488872228c7 (diff)
Add overbudget handling to GrResourceAllocator
Change-Id: I5536c908310e907c77b5d55441a0edac6a74bf0e Reviewed-on: https://skia-review.googlesource.com/71182 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrDrawingManager.h')
-rw-r--r--src/gpu/GrDrawingManager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrDrawingManager.h b/src/gpu/GrDrawingManager.h
index d4ec85a9a1..cc70d93e0d 100644
--- a/src/gpu/GrDrawingManager.h
+++ b/src/gpu/GrDrawingManager.h
@@ -100,6 +100,10 @@ private:
void abandon();
void cleanup();
+
+ // return true if any opLists were actually executed; false otherwise
+ bool executeOpLists(int startIndex, int stopIndex, GrOpFlushState*);
+
GrSemaphoresSubmitted flush(GrSurfaceProxy* proxy,
int numSemaphores = 0,
GrBackendSemaphore backendSemaphores[] = nullptr) {
@@ -127,6 +131,7 @@ private:
bool fAbandoned;
SkTArray<sk_sp<GrOpList>> fOpLists;
+ SkSTArray<8, sk_sp<GrOpList>> fOnFlushOpLists;
std::unique_ptr<GrAtlasTextContext> fAtlasTextContext;