Workaround for PowerVR clear issue.
BUG=skia:
Review URL: https://codereview.chromium.org/701573002
diff --git a/src/gpu/GrDrawTargetCaps.h b/src/gpu/GrDrawTargetCaps.h
index e468bc4..f13aa53 100644
--- a/src/gpu/GrDrawTargetCaps.h
+++ b/src/gpu/GrDrawTargetCaps.h
@@ -46,6 +46,8 @@
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 @@
bool fGpuTracingSupport : 1;
bool fCompressedTexSubImageSupport : 1;
+ // Driver workaround
+ bool fUseDrawInsteadOfClear : 1;
+
uint32_t fMapBufferFlags;
int fMaxRenderTargetSize;