Index: cc/trees/layer_tree_host_impl.cc |
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc |
index d4a94981500d50757f6803d050ba65d3f4864376..28112d1609cf91049f155701f62e3b587a4a5f91 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -2500,7 +2500,9 @@ void LayerTreeHostImpl::CreateUIResource( |
if (id) |
DeleteUIResource(uid); |
id = resource_provider_->CreateResource( |
- bitmap->GetSize(), GL_RGBA, ResourceProvider::TextureUsageAny); |
+ bitmap->GetSize(), |
+ resource_provider_->best_texture_format(), |
+ ResourceProvider::TextureUsageAny); |
ui_resource_map_[uid] = id; |
resource_provider_->SetPixels(id, |