OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ | 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ |
6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ | 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 namespace gles2 { | 21 namespace gles2 { |
22 class GLES2Decoder; | 22 class GLES2Decoder; |
23 } | 23 } |
24 } | 24 } |
25 | 25 |
26 namespace gfx { | 26 namespace gfx { |
27 class GLContext; | 27 class GLContext; |
28 class GLSurface; | 28 class GLSurface; |
29 } | 29 } |
30 | 30 |
31 namespace mus { | 31 namespace gles2 { |
32 | 32 |
33 class GpuState; | 33 class GpuState; |
34 | 34 |
35 // This class receives CommandBuffer messages on the same thread as the native | 35 // This class receives CommandBuffer messages on the same thread as the native |
36 // viewport. | 36 // viewport. |
37 class CommandBufferDriver { | 37 class CommandBufferDriver { |
38 public: | 38 public: |
39 class Client { | 39 class Client { |
40 public: | 40 public: |
41 virtual ~Client(); | 41 virtual ~Client(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 scoped_refptr<GpuState> gpu_state_; | 87 scoped_refptr<GpuState> gpu_state_; |
88 | 88 |
89 scoped_refptr<base::SingleThreadTaskRunner> context_lost_task_runner_; | 89 scoped_refptr<base::SingleThreadTaskRunner> context_lost_task_runner_; |
90 base::Callback<void(int32_t)> context_lost_callback_; | 90 base::Callback<void(int32_t)> context_lost_callback_; |
91 | 91 |
92 base::WeakPtrFactory<CommandBufferDriver> weak_factory_; | 92 base::WeakPtrFactory<CommandBufferDriver> weak_factory_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver); | 94 DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace mus | 97 } // namespace gles2 |
98 | 98 |
99 #endif // COMPONENTS_GLES2_COMMAND_BUFFER_DRIVER_H_ | 99 #endif // COMPONENTS_GLES2_COMMAND_BUFFER_DRIVER_H_ |
OLD | NEW |