Index: include/gpu/GrContextOptions.h |
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h |
index 057bc83d19b06687c24000703010f0b7fadf8983..7c723a8434ccbbc25e80f889a80204f89f98ed71 100644 |
--- a/include/gpu/GrContextOptions.h |
+++ b/include/gpu/GrContextOptions.h |
@@ -17,7 +17,8 @@ struct GrContextOptions { |
, fMaxTextureSizeOverride(SK_MaxS32) |
, fMinTextureSizeOverride(0) |
, fSuppressDualSourceBlending(false) |
- , fGeometryBufferMapThreshold(-1) {} |
+ , fGeometryBufferMapThreshold(-1) |
+ , fUseDrawInsteadOfPartialRenderTargetWrite(false) {} |
// EXPERIMENTAL |
// May be removed in the future, or may become standard depending |
@@ -39,6 +40,9 @@ struct GrContextOptions { |
buffers to CPU memory in order to update them. A value of -1 means the GrContext should |
deduce the optimal value for this platform. */ |
int fGeometryBufferMapThreshold; |
+ |
+ /** some gpus have problems with partial writes of the rendertarget */ |
+ bool fUseDrawInsteadOfPartialRenderTargetWrite; |
}; |
#endif |