| 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 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| 11 | 11 |
| 12 #include <memory> |
| 13 |
| 12 #include "base/macros.h" | 14 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" | |
| 14 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 15 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
| 15 #include "gpu/command_buffer/client/gpu_control.h" | 16 #include "gpu/command_buffer/client/gpu_control.h" |
| 16 #include "gpu/command_buffer/service/command_buffer_service.h" | 17 #include "gpu/command_buffer/service/command_buffer_service.h" |
| 17 #include "gpu/command_buffer/service/command_executor.h" | 18 #include "gpu/command_buffer/service/command_executor.h" |
| 18 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 19 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 19 #include "gpu/command_buffer/service/gpu_preferences.h" | 20 #include "gpu/command_buffer/service/gpu_preferences.h" |
| 20 #include "gpu/config/gpu_driver_bug_workarounds.h" | 21 #include "gpu/config/gpu_driver_bug_workarounds.h" |
| 21 #include "ui/gfx/native_widget_types.h" | 22 #include "ui/gfx/native_widget_types.h" |
| 22 #include "ui/gl/gl_context.h" | 23 #include "ui/gl/gl_context.h" |
| 23 #include "ui/gl/gl_surface.h" | 24 #include "ui/gl/gl_surface.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 gpu::GpuPreferences gpu_preferences_; | 112 gpu::GpuPreferences gpu_preferences_; |
| 112 const gpu::GpuDriverBugWorkarounds gpu_driver_bug_workarounds_; | 113 const gpu::GpuDriverBugWorkarounds gpu_driver_bug_workarounds_; |
| 113 bool is_initialized_; | 114 bool is_initialized_; |
| 114 | 115 |
| 115 bool create_offscreen_; | 116 bool create_offscreen_; |
| 116 int create_offscreen_width_; | 117 int create_offscreen_width_; |
| 117 int create_offscreen_height_; | 118 int create_offscreen_height_; |
| 118 uint64_t next_fence_sync_release_; | 119 uint64_t next_fence_sync_release_; |
| 119 | 120 |
| 120 scoped_refptr<gpu::TransferBufferManagerInterface> transfer_buffer_manager_; | 121 scoped_refptr<gpu::TransferBufferManagerInterface> transfer_buffer_manager_; |
| 121 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 122 std::unique_ptr<gpu::CommandBufferService> command_buffer_; |
| 122 scoped_ptr<gpu::CommandExecutor> executor_; | 123 std::unique_ptr<gpu::CommandExecutor> executor_; |
| 123 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; | 124 std::unique_ptr<gpu::gles2::GLES2Decoder> decoder_; |
| 124 scoped_refptr<gfx::GLContext> gl_context_; | 125 scoped_refptr<gfx::GLContext> gl_context_; |
| 125 scoped_refptr<gfx::GLSurface> gl_surface_; | 126 scoped_refptr<gfx::GLSurface> gl_surface_; |
| 126 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_; | 127 std::unique_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_; |
| 127 scoped_ptr<gpu::TransferBuffer> transfer_buffer_; | 128 std::unique_ptr<gpu::TransferBuffer> transfer_buffer_; |
| 128 | 129 |
| 129 // TODO(alokp): Support more than one config, surface, and context. | 130 // TODO(alokp): Support more than one config, surface, and context. |
| 130 scoped_ptr<Config> config_; | 131 std::unique_ptr<Config> config_; |
| 131 scoped_ptr<Surface> surface_; | 132 std::unique_ptr<Surface> surface_; |
| 132 scoped_ptr<gpu::gles2::GLES2Implementation> context_; | 133 std::unique_ptr<gpu::gles2::GLES2Implementation> context_; |
| 133 | 134 |
| 134 DISALLOW_COPY_AND_ASSIGN(Display); | 135 DISALLOW_COPY_AND_ASSIGN(Display); |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 } // namespace egl | 138 } // namespace egl |
| 138 | 139 |
| 139 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ | 140 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ |
| OLD | NEW |