aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrResourceProvider.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/GrResourceProvider.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/GrResourceProvider.h')
-rw-r--r--src/gpu/GrResourceProvider.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrResourceProvider.h b/src/gpu/GrResourceProvider.h
index c7b2fe3ecc..4cd34da143 100644
--- a/src/gpu/GrResourceProvider.h
+++ b/src/gpu/GrResourceProvider.h
@@ -10,6 +10,7 @@
#include "GrBuffer.h"
#include "GrPathRange.h"
+#include "GrResourceCache.h"
#include "SkImageInfo.h"
#include "SkScalerContext.h"
@@ -259,6 +260,7 @@ public:
static bool IsFunctionallyExact(GrSurfaceProxy* proxy);
const GrCaps* caps() const { return fCaps.get(); }
+ bool overBudget() const { return fCache->overBudget(); }
private:
sk_sp<GrGpuResource> findResourceByUniqueKey(const GrUniqueKey&);