diff options
author | robertphillips <robertphillips@google.com> | 2015-08-13 05:19:14 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-13 05:19:14 -0700 |
commit | 6e83ac778f8f90939abe3aee3ea865428dff592f (patch) | |
tree | 570d621d7297f6100da1c4c1f65ededd4c3f9297 /include/gpu | |
parent | cc1229c9d5e57b45305ba8f99ae33e92db0032bc (diff) |
Defer flushes if kPreferNoIO is specified
Prior to this patch clients who were solely uploading to textures (e.g., SW Mask Mgr) would cause extra flushes b.c., even though kPreferNoIO was being specified, resources with pending IO would still be returned even though there was plenty of space in the resource cache.
Review URL: https://codereview.chromium.org/1286203002
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrSurface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gpu/GrSurface.h b/include/gpu/GrSurface.h index 3515a1a68f..28935009ce 100644 --- a/include/gpu/GrSurface.h +++ b/include/gpu/GrSurface.h @@ -133,6 +133,8 @@ public: fReleaseCtx = ctx; } + static size_t WorseCaseSize(const GrSurfaceDesc& desc); + protected: // Methods made available via GrSurfacePriv SkImageInfo info(SkAlphaType) const; |