| Index: components/mus/public/cpp/lib/context_provider.cc
|
| diff --git a/components/mus/public/cpp/lib/context_provider.cc b/components/mus/public/cpp/lib/context_provider.cc
|
| index 0b0b470a7c111c43ce3b3cbf8e5428726d76b448..97e3af465cd8480c3330b3f85bb28fef08522084 100644
|
| --- a/components/mus/public/cpp/lib/context_provider.cc
|
| +++ b/components/mus/public/cpp/lib/context_provider.cc
|
| @@ -16,9 +16,6 @@ ContextProvider::ContextProvider(
|
| mojo::ScopedMessagePipeHandle command_buffer_handle)
|
| : command_buffer_handle_(std::move(command_buffer_handle)),
|
| context_(nullptr) {
|
| - // Enabled the CHROMIUM_image extension to use GpuMemoryBuffers. The
|
| - // implementation of which is used in CommandBufferDriver.
|
| - capabilities_.gpu.image = true;
|
| }
|
|
|
| bool ContextProvider::BindToCurrentThread() {
|
| @@ -46,8 +43,12 @@ class GrContext* ContextProvider::GrContext() {
|
|
|
| void ContextProvider::InvalidateGrContext(uint32_t state) {}
|
|
|
| -cc::ContextProvider::Capabilities ContextProvider::ContextCapabilities() {
|
| - return capabilities_;
|
| +gpu::Capabilities ContextProvider::ContextCapabilities() {
|
| + gpu::Capabilities capabilities;
|
| + // Enabled the CHROMIUM_image extension to use GpuMemoryBuffers. The
|
| + // implementation of which is used in CommandBufferDriver.
|
| + capabilities.image = true;
|
| + return capabilities;
|
| }
|
|
|
| void ContextProvider::SetupLock() {}
|
|
|