aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrCaps.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-08-19 08:26:51 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-19 08:26:51 -0700
commit7dea7b7df14f327f4af32a83af52ee695b4ab1e0 (patch)
tree86e0480d8269be4a77b9df3a9e25680585397515 /include/gpu/GrCaps.h
parent93ab254b7e4ce82074e88e219a8e32b31086ca86 (diff)
Use calloc to allocate data that will be uploaded to vertex/index buffers in Chrome
BUG=chromium:454267 BUG=chromium:522315 Review URL: https://codereview.chromium.org/1300123002
Diffstat (limited to 'include/gpu/GrCaps.h')
-rw-r--r--include/gpu/GrCaps.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index c9530d3720..48bcb28c4d 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -218,6 +218,10 @@ public:
bool fullClearIsFree() const { return fFullClearIsFree; }
+ /** 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; }
+
protected:
/** Subclasses must call this at the end of their constructors in order to apply caps
overrides requested by the client. Note that overrides will only reduce the caps never
@@ -239,6 +243,7 @@ protected:
bool fTextureBarrierSupport : 1;
bool fSupportsInstancedDraws : 1;
bool fFullClearIsFree : 1;
+ bool fMustClearUploadedBufferData : 1;
// Driver workaround
bool fUseDrawInsteadOfClear : 1;