Index: cc/output/shader.h |
diff --git a/cc/output/shader.h b/cc/output/shader.h |
index dec1379e7d8132cb917888c47e15d73b2a16ed0c..155efcee2b74b0d767687a952092a82e4e22c33c 100644 |
--- a/cc/output/shader.h |
+++ b/cc/output/shader.h |
@@ -28,13 +28,19 @@ enum TexCoordPrecision { |
TexCoordPrecisionHigh, |
}; |
+// Note: The highp_threshold_cache must be provided by the caller to make |
+// the caching multi-thread/context safe in an easy low-overhead manner. |
+// The caller must make sure to clear highp_threshold_cache to 0, so it can be |
+// reinitialized, if a new or different context is used. |
CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( |
WebKit::WebGraphicsContext3D* context, |
+ int *highp_threshold_cache, |
int highp_threshold_min, |
gfx::Point max_coordinate); |
CC_EXPORT TexCoordPrecision TexCoordPrecisionRequired( |
WebKit::WebGraphicsContext3D* context, |
+ int *highp_threshold_cache, |
int highp_threshold_min, |
gfx::Size max_size); |