| Index: services/ui/gles2/gpu_impl.cc
|
| diff --git a/services/ui/gles2/gpu_impl.cc b/services/ui/gles2/gpu_impl.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5da5d81106df61c38ba75434d811ed5d3bc83513
|
| --- /dev/null
|
| +++ b/services/ui/gles2/gpu_impl.cc
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "services/ui/gles2/gpu_impl.h"
|
| +
|
| +#include "services/ui/common/gpu_type_converters.h"
|
| +#include "services/ui/gles2/command_buffer_impl.h"
|
| +
|
| +namespace ui {
|
| +
|
| +GpuImpl::GpuImpl(mojo::InterfaceRequest<Gpu> request,
|
| + const scoped_refptr<GpuState>& state)
|
| + : binding_(this, std::move(request)), state_(state) {}
|
| +
|
| +GpuImpl::~GpuImpl() {}
|
| +
|
| +void GpuImpl::CreateOffscreenGLES2Context(
|
| + mojo::InterfaceRequest<mojom::CommandBuffer> request) {
|
| + new CommandBufferImpl(std::move(request), state_);
|
| +}
|
| +
|
| +void GpuImpl::GetGpuInfo(const GetGpuInfoCallback& callback) {
|
| + callback.Run(mojom::GpuInfo::From<gpu::GPUInfo>(state_->gpu_info()));
|
| +}
|
| +
|
| +} // namespace ui
|
|
|