blob: f9c100c5a53ca75cb7ac204159051ef4ea75f8bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// 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.
#ifndef COMPONENTS_VIEW_MANAGER_GLES2_GPU_IMPL_H_
#define COMPONENTS_VIEW_MANAGER_GLES2_GPU_IMPL_H_
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/threading/thread.h"
#include "components/view_manager/gles2/gpu_state.h"
#include "components/view_manager/public/interfaces/command_buffer.mojom.h"
#include "components/view_manager/public/interfaces/gpu.mojom.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
#include "ui/mojo/geometry/geometry.mojom.h"
namespace gles2 {
class GpuImpl : public mojo::Gpu {
public:
GpuImpl(mojo::InterfaceRequest<mojo::Gpu> request,
const scoped_refptr<GpuState>& state);
~GpuImpl() override;
private:
void CreateOffscreenGLES2Context(mojo::InterfaceRequest<mojo::CommandBuffer>
command_buffer_request) override;
mojo::StrongBinding<Gpu> binding_;
scoped_refptr<GpuState> state_;
DISALLOW_COPY_AND_ASSIGN(GpuImpl);
};
} // namespace gles2
#endif // COMPONENTS_VIEW_MANAGER_GLES2_GPU_IMPL_H_
|