Index: cc/resources/resource_provider.h |
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h |
index 7f05e653ecafca580160b1eadb9a7d356d768bc2..aa1ff32424ce62e2ab91dee0e89427667fe145f4 100644 |
--- a/cc/resources/resource_provider.h |
+++ b/cc/resources/resource_provider.h |
@@ -454,6 +454,9 @@ class CC_EXPORT ResourceProvider |
// For tests only! |
void CreateForTesting(viz::ResourceId id); |
+ void SetYUVHighbitResourceFormatForTesting(viz::ResourceFormat format) { |
+ settings_.yuv_highbit_resource_format = format; |
+ } |
// Sets the current read fence. If a resource is locked for read |
// and has read fences enabled, the resource will not allow writes |
@@ -664,7 +667,7 @@ class CC_EXPORT ResourceProvider |
// Returns null if we do not have a viz::ContextProvider. |
gpu::gles2::GLES2Interface* ContextGL() const; |
- // Holds const settings for the ResourceProvider. Never changed after init. |
+ // Holds settings for the ResourceProvider. Never changed after init. |
struct Settings { |
Settings(viz::ContextProvider* compositor_context_provider, |
bool delegated_sync_points_needed, |
@@ -683,7 +686,7 @@ class CC_EXPORT ResourceProvider |
viz::ResourceFormat best_render_buffer_format = viz::RGBA_8888; |
bool enable_color_correct_rasterization = false; |
bool delegated_sync_points_required = false; |
- } const settings_; |
+ } settings_; |
ResourceMap resources_; |
ChildMap children_; |