| Index: services/ui/public/cpp/context_provider.cc
|
| diff --git a/services/ui/public/cpp/context_provider.cc b/services/ui/public/cpp/context_provider.cc
|
| index ec1991c3a4030e3cece7b22e0a2d5f1aafdbfc13..93610423f9cd0f5d08b293197276dec8a8ee8d14 100644
|
| --- a/services/ui/public/cpp/context_provider.cc
|
| +++ b/services/ui/public/cpp/context_provider.cc
|
| @@ -7,15 +7,17 @@
|
| #include <stdint.h>
|
|
|
| #include "base/logging.h"
|
| +#include "gpu/ipc/client/gpu_channel_host.h"
|
| #include "services/ui/public/cpp/gles2_context.h"
|
|
|
| namespace ui {
|
|
|
| -ContextProvider::ContextProvider(GpuService* gpu_service)
|
| - : gpu_service_(gpu_service) {}
|
| +ContextProvider::ContextProvider(
|
| + scoped_refptr<gpu::GpuChannelHost> gpu_channel_host)
|
| + : gpu_channel_host_(std::move(gpu_channel_host)) {}
|
|
|
| bool ContextProvider::BindToCurrentThread() {
|
| - context_ = GLES2Context::CreateOffscreenContext(gpu_service_);
|
| + context_ = GLES2Context::CreateOffscreenContext(gpu_channel_host_);
|
| return !!context_;
|
| }
|
|
|
|
|