Chromium Code Reviews| Index: cc/resources/resource_provider.cc |
| diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc |
| index d4a7087fa010008769b9f5e55339efe0c3cd7689..059fe8881f573117908fd5e365c63826c299442d 100644 |
| --- a/cc/resources/resource_provider.cc |
| +++ b/cc/resources/resource_provider.cc |
| @@ -1248,6 +1248,9 @@ void ResourceProvider::Initialize() { |
| yuv_highbit_resource_format_ = yuv_resource_format_; |
| if (caps.gpu.texture_half_float_linear) |
| yuv_highbit_resource_format_ = LUMINANCE_F16; |
| + if (caps.gpu.force_software_yuv_conversion) { |
| + yuv_resource_format_ = yuv_highbit_resource_format_ = RGBA_8888; |
| + } |
|
dcheng
2016/03/08 18:33:15
Nit: no braces here to match local convention.
Tobias Sargeant
2016/03/09 11:50:58
Done.
|
| use_sync_query_ = caps.gpu.sync_query; |
| max_texture_size_ = 0; // Context expects cleared value. |