diff options
author | Robert Phillips <robertphillips@google.com> | 2017-11-16 07:52:08 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-16 16:35:57 +0000 |
commit | eafd48af63aef270cbea139547bb4fa8a591748d (patch) | |
tree | c59febed663b2e00ab9af5eb8ad239a3efded290 /src/gpu/GrSurfaceProxyPriv.h | |
parent | 5627d65146cb92624b682389e017d488872228c7 (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/GrSurfaceProxyPriv.h')
-rw-r--r-- | src/gpu/GrSurfaceProxyPriv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrSurfaceProxyPriv.h b/src/gpu/GrSurfaceProxyPriv.h index 1f953f401d..a93a20c051 100644 --- a/src/gpu/GrSurfaceProxyPriv.h +++ b/src/gpu/GrSurfaceProxyPriv.h @@ -68,6 +68,8 @@ public: // Don't. Just don't. void exactify(); + static bool AttachStencilIfNeeded(GrResourceProvider*, GrSurface*, bool needsStencil); + private: explicit GrSurfaceProxyPriv(GrSurfaceProxy* proxy) : fProxy(proxy) {} GrSurfaceProxyPriv(const GrSurfaceProxyPriv&) {} // unimpl |