| Index: cc/resources/resource_provider.cc
|
| diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
|
| index 2ebeb8d37944913bcf16b76d7e0a3a218dbddf1d..a6bb60e1a9c881fb11abfcb07a3c51a006966a6d 100644
|
| --- a/cc/resources/resource_provider.cc
|
| +++ b/cc/resources/resource_provider.cc
|
| @@ -445,10 +445,15 @@ ResourceProvider::ResourceProvider(
|
| use_texture_format_bgra_ = caps.texture_format_bgra8888;
|
| use_texture_usage_hint_ = caps.texture_usage;
|
| use_compressed_texture_etc1_ = caps.texture_format_etc1;
|
| - yuv_resource_format_ = caps.texture_rg ? RED_8 : LUMINANCE_8;
|
| - yuv_highbit_resource_format_ = yuv_resource_format_;
|
| - if (caps.texture_half_float_linear)
|
| - yuv_highbit_resource_format_ = LUMINANCE_F16;
|
| +
|
| + if (caps.disable_one_component_textures) {
|
| + yuv_resource_format_ = yuv_highbit_resource_format_ = RGBA_8888;
|
| + } else {
|
| + yuv_resource_format_ = caps.texture_rg ? RED_8 : LUMINANCE_8;
|
| + yuv_highbit_resource_format_ =
|
| + caps.texture_half_float_linear ? LUMINANCE_F16 : yuv_resource_format_;
|
| + }
|
| +
|
| use_sync_query_ = caps.sync_query;
|
|
|
| GLES2Interface* gl = ContextGL();
|
|
|