Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: components/view_manager/gles2/gpu_impl.h

Issue 1231263003: Share SyncPointManager between ipc and in-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove forward decl/includes Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_VIEW_MANAGER_GLES2_GPU_IMPL_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_GLES2_GPU_IMPL_H_
6 #define COMPONENTS_VIEW_MANAGER_GLES2_GPU_IMPL_H_ 6 #define COMPONENTS_VIEW_MANAGER_GLES2_GPU_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 #include "components/view_manager/gles2/gpu_state.h" 11 #include "components/view_manager/gles2/gpu_state.h"
12 #include "components/view_manager/public/interfaces/command_buffer.mojom.h" 12 #include "components/view_manager/public/interfaces/command_buffer.mojom.h"
13 #include "components/view_manager/public/interfaces/gpu.mojom.h" 13 #include "components/view_manager/public/interfaces/gpu.mojom.h"
14 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" 14 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
15 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" 15 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
16 #include "ui/mojo/geometry/geometry.mojom.h" 16 #include "ui/mojo/geometry/geometry.mojom.h"
17 17
18 namespace gfx {
19 class GLShareGroup;
20 }
21
22 namespace gpu {
23 class SyncPointManager;
24 namespace gles2 {
25 class MailboxManager;
26 }
27 }
28
29 namespace gles2 { 18 namespace gles2 {
30 19
31 class GpuImpl : public mojo::Gpu { 20 class GpuImpl : public mojo::Gpu {
32 public: 21 public:
33 GpuImpl(mojo::InterfaceRequest<mojo::Gpu> request, 22 GpuImpl(mojo::InterfaceRequest<mojo::Gpu> request,
34 const scoped_refptr<GpuState>& state); 23 const scoped_refptr<GpuState>& state);
35 ~GpuImpl() override; 24 ~GpuImpl() override;
36 25
37 private: 26 private:
38 void CreateOffscreenGLES2Context(mojo::InterfaceRequest<mojo::CommandBuffer> 27 void CreateOffscreenGLES2Context(mojo::InterfaceRequest<mojo::CommandBuffer>
39 command_buffer_request) override; 28 command_buffer_request) override;
40 29
41 mojo::StrongBinding<Gpu> binding_; 30 mojo::StrongBinding<Gpu> binding_;
42 scoped_refptr<GpuState> state_; 31 scoped_refptr<GpuState> state_;
43 32
44 DISALLOW_COPY_AND_ASSIGN(GpuImpl); 33 DISALLOW_COPY_AND_ASSIGN(GpuImpl);
45 }; 34 };
46 35
47 } // namespace gles2 36 } // namespace gles2
48 37
49 #endif // COMPONENTS_VIEW_MANAGER_GLES2_GPU_IMPL_H_ 38 #endif // COMPONENTS_VIEW_MANAGER_GLES2_GPU_IMPL_H_
OLDNEW
« no previous file with comments | « components/view_manager/gles2/command_buffer_impl.cc ('k') | components/view_manager/gles2/gpu_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698