aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrCaps.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-05-24 10:07:30 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-24 16:04:45 +0000
commit8785df15fe5a57651597d138d3c5aea0ffe3f661 (patch)
tree0770ceaa9b46105235a19ab3dfa2d608cce3d6eb /include/gpu/GrCaps.h
parent5458cf8ec62c548480d5bb142afa71e4269ddac9 (diff)
Clear atlas textures at creation in Chrome
Bug: chromium:656320 Change-Id: Ia65274aa733f199be188579821e745920493aefc Reviewed-on: https://skia-review.googlesource.com/17824 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/gpu/GrCaps.h')
-rw-r--r--include/gpu/GrCaps.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 4dc776734e..e6034c52af 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -176,6 +176,8 @@ public:
/** True in environments that will issue errors if memory uploaded to buffers
is not initialized (even if not read by draw calls). */
bool mustClearUploadedBufferData() const { return fMustClearUploadedBufferData; }
+ /** True when there is a performance cost to using an atlas that has not been cleared. */
+ bool mustClearAtlases() const { return fMustClearAtlases; }
bool wireframeMode() const { return fWireframeMode; }
@@ -219,6 +221,7 @@ protected:
bool fPreferClientSideDynamicBuffers : 1;
bool fFullClearIsFree : 1;
bool fMustClearUploadedBufferData : 1;
+ bool fMustClearAtlases : 1;
// Driver workaround
bool fUseDrawInsteadOfClear : 1;