Index: cc/output/renderer_settings.cc |
diff --git a/cc/output/renderer_settings.cc b/cc/output/renderer_settings.cc |
index 308926c807048aa82b0bec83511676d9144b17ff..066549f9dd67a2cafa8145b24cbc559f4bdb877b 100644 |
--- a/cc/output/renderer_settings.cc |
+++ b/cc/output/renderer_settings.cc |
@@ -26,6 +26,7 @@ RendererSettings::RendererSettings() |
highp_threshold_min(0), |
texture_id_allocation_chunk_size(64), |
use_gpu_memory_buffer_resources(false), |
+ enable_color_correct_rendering(false), |
preferred_tile_format(PlatformColor::BestTextureFormat()) {} |
RendererSettings::RendererSettings(const RendererSettings& other) = default; |
@@ -47,6 +48,7 @@ void RendererSettings::ToProtobuf(proto::RendererSettings* proto) const { |
proto->set_highp_threshold_min(highp_threshold_min); |
proto->set_texture_id_allocation_chunk_size(texture_id_allocation_chunk_size); |
proto->set_use_gpu_memory_buffer_resources(use_gpu_memory_buffer_resources); |
+ proto->set_enable_color_correct_rendering(enable_color_correct_rendering); |
proto->set_preferred_tile_format(preferred_tile_format); |
for (const auto& target : buffer_to_texture_target_map) { |
@@ -71,6 +73,7 @@ void RendererSettings::FromProtobuf(const proto::RendererSettings& proto) { |
highp_threshold_min = proto.highp_threshold_min(); |
texture_id_allocation_chunk_size = proto.texture_id_allocation_chunk_size(); |
use_gpu_memory_buffer_resources = proto.use_gpu_memory_buffer_resources(); |
+ enable_color_correct_rendering = proto.enable_color_correct_rendering(); |
DCHECK_LE(proto.preferred_tile_format(), |
static_cast<uint32_t>(RESOURCE_FORMAT_MAX)); |
@@ -104,6 +107,8 @@ bool RendererSettings::operator==(const RendererSettings& other) const { |
other.texture_id_allocation_chunk_size && |
use_gpu_memory_buffer_resources == |
other.use_gpu_memory_buffer_resources && |
+ enable_color_correct_rendering == |
+ other.enable_color_correct_rendering && |
preferred_tile_format == other.preferred_tile_format && |
buffer_to_texture_target_map == other.buffer_to_texture_target_map; |
} |