diff options
author | Greg Daniel <egdaniel@google.com> | 2017-09-05 15:45:15 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-06 14:41:18 +0000 |
commit | 52cb5fe23b8f960bb3248620c8f4e2f2957b6685 (patch) | |
tree | a1506943d9720c79c76a619203c851b28ce3c636 /src/gpu/GrResourceProvider.h | |
parent | 38702ab43b2857f2fe06afb8dad1339d76a2fd84 (diff) |
Remove isMipMapped from GrSurfaceDesc
Bug: skia:
Change-Id: Id3864aad7ff9636362c9c54ef411a02af9c83fbf
Reviewed-on: https://skia-review.googlesource.com/42083
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrResourceProvider.h')
-rw-r--r-- | src/gpu/GrResourceProvider.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpu/GrResourceProvider.h b/src/gpu/GrResourceProvider.h index 1ab1ec42fc..7b794ad236 100644 --- a/src/gpu/GrResourceProvider.h +++ b/src/gpu/GrResourceProvider.h @@ -163,7 +163,7 @@ public: /** These flags govern which scratch resources we are allowed to return */ enum Flags { - kExact_Flag = 0x1, + kMipMapped_Flag = 0x1, /** If the caller intends to do direct reads/writes to/from the CPU then this flag must be * set when accessing resources during a GrOpList flush. This includes the execution of @@ -173,12 +173,10 @@ public: */ kNoPendingIO_Flag = 0x2, - kNoCreate_Flag = 0x4, - /** Normally the caps may indicate a preference for client-side buffers. Set this flag when * creating a buffer to guarantee it resides in GPU memory. */ - kRequireGpuMemory_Flag = 0x8, + kRequireGpuMemory_Flag = 0x4, }; /** @@ -262,7 +260,8 @@ private: * Try to find an existing scratch texture that exactly matches 'desc'. If successful * update the budgeting accordingly. */ - sk_sp<GrTexture> getExactScratch(const GrSurfaceDesc&, SkBudgeted, uint32_t flags); + sk_sp<GrTexture> getExactScratch(const GrSurfaceDesc&, SkBudgeted, uint32_t flags, + bool isMipMapped); GrResourceCache* cache() { return fCache; } const GrResourceCache* cache() const { return fCache; } |