diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-12-11 15:42:09 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-12 15:21:09 +0000 |
commit | 344e9037e1befdee76691a1239a47829e6af4ea5 (patch) | |
tree | 16d7902f9ee8fc261bc17f465bb9488dccd56532 /src/gpu/GrCaps.cpp | |
parent | 6e64f308910493b4327f7b8aadd7f4aabf3a9601 (diff) |
Prefer fullscreen clears on Qualcomm/GL
Adds Qualcomm to the set of GL devices on which we prefer fullscreen
clears.
Renames fullscreenClearIsFree in GrCaps to preferFullscreenClears.
Replaces 'bool canIgnoreClip' on GrRenderTargetContext::clear with an
enum.
Bug: skia:
Change-Id: I5b30298c4d0b092c398b9fea6060f3e2bea91e46
Reviewed-on: https://skia-review.googlesource.com/83060
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrCaps.cpp')
-rw-r--r-- | src/gpu/GrCaps.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrCaps.cpp b/src/gpu/GrCaps.cpp index 198551ae9e..2c83cc3bd1 100644 --- a/src/gpu/GrCaps.cpp +++ b/src/gpu/GrCaps.cpp @@ -53,7 +53,7 @@ GrCaps::GrCaps(const GrContextOptions& options) { fInstanceAttribSupport = false; fUsesMixedSamples = false; fPreferClientSideDynamicBuffers = false; - fFullClearIsFree = false; + fPreferFullscreenClears = false; fMustClearUploadedBufferData = false; fSampleShadingSupport = false; fFenceSyncSupport = false; @@ -150,7 +150,7 @@ void GrCaps::dumpJSON(SkJSONWriter* writer) const { writer->appendBool("Instance Attrib Support", fInstanceAttribSupport); writer->appendBool("Uses Mixed Samples", fUsesMixedSamples); writer->appendBool("Prefer client-side dynamic buffers", fPreferClientSideDynamicBuffers); - writer->appendBool("Full screen clear is free", fFullClearIsFree); + writer->appendBool("Prefer fullscreen clears", fPreferFullscreenClears); writer->appendBool("Must clear buffer memory", fMustClearUploadedBufferData); writer->appendBool("Sample shading support", fSampleShadingSupport); writer->appendBool("Fence sync support", fFenceSyncSupport); |