diff options
author | Robert Phillips <robertphillips@google.com> | 2017-11-08 13:34:43 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-08 19:06:17 +0000 |
commit | f290376736b42a19b87da78c6ba2558313896860 (patch) | |
tree | 664ff0fb2802069f4373238a6127b287cc3db8a6 /src/gpu/GrSurfaceProxyPriv.h | |
parent | 47ba5cd0974273192c83cc27addb9ae1880c1d6d (diff) |
Prepare to enable explicit gpu resource allocation
Change-Id: I407e45711c61831febbac3d3d3a88e3fdde92c5f
Reviewed-on: https://skia-review.googlesource.com/68212
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrSurfaceProxyPriv.h')
-rw-r--r-- | src/gpu/GrSurfaceProxyPriv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrSurfaceProxyPriv.h b/src/gpu/GrSurfaceProxyPriv.h index f88c5cdfd9..1f953f401d 100644 --- a/src/gpu/GrSurfaceProxyPriv.h +++ b/src/gpu/GrSurfaceProxyPriv.h @@ -10,6 +10,8 @@ #include "GrSurfaceProxy.h" +#include "GrResourceProvider.h" + /** Class that adds methods to GrSurfaceProxy that are only intended for use internal to Skia. This class is purely a privileged window into GrSurfaceProxy. It should never have additional data members or virtual methods. */ @@ -56,6 +58,10 @@ public: // Assign this proxy the provided GrSurface as its backing surface void assign(sk_sp<GrSurface> surface) { fProxy->assign(std::move(surface)); } + bool requiresNoPendingIO() const { + return fProxy->fFlags & GrResourceProvider::kNoPendingIO_Flag; + } + // Don't abuse this call!!!!!!! bool isExact() const { return SkBackingFit::kExact == fProxy->fFit; } |