aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrContextOptions.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-06-18 14:18:02 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-18 14:18:03 -0700
commit83bc22970364f1ff94751b99c4b4048b3c66e1a2 (patch)
treed20e70f1ff856b36208486f8cc8481ee1b86649e /include/gpu/GrContextOptions.h
parent35a5261085ca96f97deb59ec5515db250b53e82c (diff)
Work around for nexus 6 TexSubImage issue
Diffstat (limited to 'include/gpu/GrContextOptions.h')
-rw-r--r--include/gpu/GrContextOptions.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h
index 057bc83d19..7c723a8434 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