Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: include/gpu/GrContextOptions.h

Issue 1159713006: add context override of GeometryBufferMapThreshold (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/GrConfig.h ('k') | include/gpu/GrUserConfig.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContextOptions.h
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h
index dfb352b5078041e30cd27f0b4f6134fb0da02791..d8d59fac3a89186a6705279f446ef5c2ca978271 100644
--- a/include/gpu/GrContextOptions.h
+++ b/include/gpu/GrContextOptions.h
@@ -15,7 +15,8 @@ struct GrContextOptions {
: fDrawPathToCompressedTexture(false)
, fSuppressPrints(false)
, fMaxTextureSizeOverride(SK_MaxS32)
- , fSuppressDualSourceBlending(false) {}
+ , fSuppressDualSourceBlending(false)
+ , fGeometryBufferMapThreshold(1 << 15) {}
// EXPERIMENTAL
// May be removed in the future, or may become standard depending
@@ -31,6 +32,12 @@ struct GrContextOptions {
int fMaxTextureSizeOverride;
bool fSuppressDualSourceBlending;
+
+ /** fGeometryBufferMapThreshold gives a threshold (in bytes) for when Gr should
+ map a GrGeometryBuffer to update its contents. It will use map() if the
+ size of the updated region is greater than the threshold. Otherwise it will
+ use updateData(). */
+ size_t fGeometryBufferMapThreshold;
};
#endif
« no previous file with comments | « include/gpu/GrConfig.h ('k') | include/gpu/GrUserConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698