| Index: components/mus/surfaces/surfaces_context_provider.cc
|
| diff --git a/components/mus/surfaces/surfaces_context_provider.cc b/components/mus/surfaces/surfaces_context_provider.cc
|
| index 3079a838a028fa3b421b855756879f790ac3ea3f..44e45798cb64afb69c1db10d62213a9ea701ef9c 100644
|
| --- a/components/mus/surfaces/surfaces_context_provider.cc
|
| +++ b/components/mus/surfaces/surfaces_context_provider.cc
|
| @@ -28,14 +28,19 @@ const size_t kDefaultMaxTransferBufferSize = 16 * 1024 * 1024;
|
| }
|
|
|
| SurfacesContextProvider::SurfacesContextProvider(
|
| - SurfacesContextProviderDelegate* delegate,
|
| gfx::AcceleratedWidget widget,
|
| const scoped_refptr<GpuState>& state)
|
| - : delegate_(delegate), widget_(widget), command_buffer_local_(nullptr) {
|
| + : delegate_(nullptr), widget_(widget), command_buffer_local_(nullptr) {
|
| capabilities_.gpu.image = true;
|
| command_buffer_local_ = new CommandBufferLocal(this, widget_, state);
|
| }
|
|
|
| +void SurfacesContextProvider::SetDelegate(
|
| + SurfacesContextProviderDelegate* delegate) {
|
| + DCHECK(!delegate_);
|
| + delegate_ = delegate;
|
| +}
|
| +
|
| // This routine needs to be safe to call more than once.
|
| // This is called when we have an accelerated widget.
|
| bool SurfacesContextProvider::BindToCurrentThread() {
|
|
|