aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawTargetCaps.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-11-05 07:05:34 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-05 07:05:34 -0800
commit63b21962867af0f98e12a3ccbe5eef76b7ecc3aa (patch)
treede7d7e1dc8306de3ceee04f1235ac853b7b22623 /src/gpu/GrDrawTargetCaps.h
parent0737922ca249dde6187920f491fe2cf3a710cb68 (diff)
Workaround for PowerVR clear issue.
Diffstat (limited to 'src/gpu/GrDrawTargetCaps.h')
-rw-r--r--src/gpu/GrDrawTargetCaps.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrDrawTargetCaps.h b/src/gpu/GrDrawTargetCaps.h
index e468bc41ab..f13aa53c80 100644
--- a/src/gpu/GrDrawTargetCaps.h
+++ b/src/gpu/GrDrawTargetCaps.h
@@ -46,6 +46,8 @@ public:
bool gpuTracingSupport() const { return fGpuTracingSupport; }
bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSupport; }
+ bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; }
+
/**
* Indicates whether GPU->CPU memory mapping for GPU resources such as vertex buffers and
* textures allows partial mappings or full mappings.
@@ -104,6 +106,9 @@ protected:
bool fGpuTracingSupport : 1;
bool fCompressedTexSubImageSupport : 1;
+ // Driver workaround
+ bool fUseDrawInsteadOfClear : 1;
+
uint32_t fMapBufferFlags;
int fMaxRenderTargetSize;