OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ | 5 #ifndef GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ |
6 #define GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ | 6 #define GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ |
7 | 7 |
8 #include <EGL/egl.h> | 8 #include <EGL/egl.h> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 class GpuScheduler; | 23 class GpuScheduler; |
24 class TransferBuffer; | 24 class TransferBuffer; |
25 class TransferBufferManagerInterface; | 25 class TransferBufferManagerInterface; |
26 | 26 |
27 namespace gles2 { | 27 namespace gles2 { |
28 class GLES2CmdHelper; | 28 class GLES2CmdHelper; |
29 class GLES2Implementation; | 29 class GLES2Implementation; |
30 } // namespace gles2 | 30 } // namespace gles2 |
31 } // namespace gpu | 31 } // namespace gpu |
32 | 32 |
33 namespace base { | |
34 class AtExitManager; | |
35 } // namespace base | |
36 | |
37 namespace egl { | 33 namespace egl { |
38 | 34 |
39 class Config; | 35 class Config; |
40 class Surface; | 36 class Surface; |
41 | 37 |
42 class Display : private gpu::GpuControl { | 38 class Display : private gpu::GpuControl { |
43 public: | 39 public: |
44 explicit Display(EGLNativeDisplayType display_id); | 40 explicit Display(EGLNativeDisplayType display_id); |
45 ~Display() override; | 41 ~Display() override; |
46 | 42 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 97 |
102 private: | 98 private: |
103 EGLNativeDisplayType display_id_; | 99 EGLNativeDisplayType display_id_; |
104 | 100 |
105 bool is_initialized_; | 101 bool is_initialized_; |
106 bool create_offscreen_; | 102 bool create_offscreen_; |
107 int create_offscreen_width_; | 103 int create_offscreen_width_; |
108 int create_offscreen_height_; | 104 int create_offscreen_height_; |
109 | 105 |
110 scoped_refptr<gpu::TransferBufferManagerInterface> transfer_buffer_manager_; | 106 scoped_refptr<gpu::TransferBufferManagerInterface> transfer_buffer_manager_; |
111 scoped_ptr<base::AtExitManager> exit_manager_; | |
112 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 107 scoped_ptr<gpu::CommandBufferService> command_buffer_; |
113 scoped_ptr<gpu::GpuScheduler> gpu_scheduler_; | 108 scoped_ptr<gpu::GpuScheduler> gpu_scheduler_; |
114 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; | 109 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; |
115 scoped_refptr<gfx::GLContext> gl_context_; | 110 scoped_refptr<gfx::GLContext> gl_context_; |
116 scoped_refptr<gfx::GLSurface> gl_surface_; | 111 scoped_refptr<gfx::GLSurface> gl_surface_; |
117 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_; | 112 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_; |
118 scoped_ptr<gpu::TransferBuffer> transfer_buffer_; | 113 scoped_ptr<gpu::TransferBuffer> transfer_buffer_; |
119 | 114 |
120 // TODO(alokp): Support more than one config, surface, and context. | 115 // TODO(alokp): Support more than one config, surface, and context. |
121 scoped_ptr<Config> config_; | 116 scoped_ptr<Config> config_; |
122 scoped_ptr<Surface> surface_; | 117 scoped_ptr<Surface> surface_; |
123 scoped_ptr<gpu::gles2::GLES2Implementation> context_; | 118 scoped_ptr<gpu::gles2::GLES2Implementation> context_; |
124 | 119 |
125 DISALLOW_COPY_AND_ASSIGN(Display); | 120 DISALLOW_COPY_AND_ASSIGN(Display); |
126 }; | 121 }; |
127 | 122 |
128 } // namespace egl | 123 } // namespace egl |
129 | 124 |
130 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ | 125 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ |
OLD | NEW |