diff options
author | bsalomon <bsalomon@google.com> | 2014-11-05 07:05:34 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-05 07:05:34 -0800 |
commit | 63b21962867af0f98e12a3ccbe5eef76b7ecc3aa (patch) | |
tree | de7d7e1dc8306de3ceee04f1235ac853b7b22623 /src/gpu/GrDrawTargetCaps.h | |
parent | 0737922ca249dde6187920f491fe2cf3a710cb68 (diff) |
Workaround for PowerVR clear issue.
BUG=skia:
Review URL: https://codereview.chromium.org/701573002
Diffstat (limited to 'src/gpu/GrDrawTargetCaps.h')
-rw-r--r-- | src/gpu/GrDrawTargetCaps.h | 5 |
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; |