diff options
author | joshualitt <joshualitt@chromium.org> | 2015-06-18 14:18:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-18 14:18:03 -0700 |
commit | 83bc22970364f1ff94751b99c4b4048b3c66e1a2 (patch) | |
tree | d20e70f1ff856b36208486f8cc8481ee1b86649e /include/gpu/GrContextOptions.h | |
parent | 35a5261085ca96f97deb59ec5515db250b53e82c (diff) |
Work around for nexus 6 TexSubImage issue
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/c69fe20ef35df0776b179cbd5ce4d1bdc0ba4090
Review URL: https://codereview.chromium.org/1173203005
Diffstat (limited to 'include/gpu/GrContextOptions.h')
-rw-r--r-- | include/gpu/GrContextOptions.h | 6 |
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 |