| 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_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| 6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class GLShareGroup; | 28 class GLShareGroup; |
| 29 class GLSurface; | 29 class GLSurface; |
| 30 | 30 |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace gpu { | 33 namespace gpu { |
| 34 | 34 |
| 35 class CommandBufferService; | 35 class CommandBufferService; |
| 36 class CommandExecutor; | 36 class CommandExecutor; |
| 37 class ImageFactory; | 37 class ImageFactory; |
| 38 class ServiceDiscardableManager; |
| 38 class SyncPointClientState; | 39 class SyncPointClientState; |
| 39 class SyncPointOrderData; | 40 class SyncPointOrderData; |
| 40 class SyncPointManager; | 41 class SyncPointManager; |
| 41 class TransferBuffer; | 42 class TransferBuffer; |
| 42 | 43 |
| 43 namespace gles2 { | 44 namespace gles2 { |
| 44 | 45 |
| 45 class MailboxManager; | 46 class MailboxManager; |
| 46 class GLES2Decoder; | 47 class GLES2Decoder; |
| 47 class GLES2CmdHelper; | 48 class GLES2CmdHelper; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 bool OnWaitSyncToken(const SyncToken& sync_token); | 161 bool OnWaitSyncToken(const SyncToken& sync_token); |
| 161 | 162 |
| 162 gpu::GpuPreferences gpu_preferences_; | 163 gpu::GpuPreferences gpu_preferences_; |
| 163 | 164 |
| 164 SyncPointManager* sync_point_manager_ = nullptr; // Non-owning. | 165 SyncPointManager* sync_point_manager_ = nullptr; // Non-owning. |
| 165 | 166 |
| 166 scoped_refptr<SyncPointOrderData> sync_point_order_data_; | 167 scoped_refptr<SyncPointOrderData> sync_point_order_data_; |
| 167 scoped_refptr<SyncPointClientState> sync_point_client_state_; | 168 scoped_refptr<SyncPointClientState> sync_point_client_state_; |
| 168 scoped_refptr<gles2::MailboxManager> mailbox_manager_; | 169 scoped_refptr<gles2::MailboxManager> mailbox_manager_; |
| 169 scoped_refptr<gl::GLShareGroup> share_group_; | 170 scoped_refptr<gl::GLShareGroup> share_group_; |
| 171 std::unique_ptr<ServiceDiscardableManager> discardable_manager_; |
| 170 std::unique_ptr<CommandBufferService> command_buffer_; | 172 std::unique_ptr<CommandBufferService> command_buffer_; |
| 171 std::unique_ptr<gles2::GLES2Decoder> decoder_; | 173 std::unique_ptr<gles2::GLES2Decoder> decoder_; |
| 172 std::unique_ptr<CommandExecutor> executor_; | 174 std::unique_ptr<CommandExecutor> executor_; |
| 173 scoped_refptr<gl::GLSurface> surface_; | 175 scoped_refptr<gl::GLSurface> surface_; |
| 174 scoped_refptr<gl::GLContext> context_; | 176 scoped_refptr<gl::GLContext> context_; |
| 175 std::unique_ptr<gles2::GLES2CmdHelper> gles2_helper_; | 177 std::unique_ptr<gles2::GLES2CmdHelper> gles2_helper_; |
| 176 std::unique_ptr<TransferBuffer> transfer_buffer_; | 178 std::unique_ptr<TransferBuffer> transfer_buffer_; |
| 177 std::unique_ptr<gles2::GLES2Implementation> gles2_implementation_; | 179 std::unique_ptr<gles2::GLES2Implementation> gles2_implementation_; |
| 178 bool context_lost_allowed_ = false; | 180 bool context_lost_allowed_ = false; |
| 179 bool pause_commands_ = false; | 181 bool pause_commands_ = false; |
| 180 uint32_t paused_order_num_ = 0; | 182 uint32_t paused_order_num_ = 0; |
| 181 | 183 |
| 182 const CommandBufferId command_buffer_id_; | 184 const CommandBufferId command_buffer_id_; |
| 183 uint64_t next_fence_sync_release_ = 1; | 185 uint64_t next_fence_sync_release_ = 1; |
| 184 | 186 |
| 185 bool use_iosurface_memory_buffers_ = false; | 187 bool use_iosurface_memory_buffers_ = false; |
| 186 | 188 |
| 187 // Used on Android to virtualize GL for all contexts. | 189 // Used on Android to virtualize GL for all contexts. |
| 188 static int use_count_; | 190 static int use_count_; |
| 189 static scoped_refptr<gl::GLShareGroup>* base_share_group_; | 191 static scoped_refptr<gl::GLShareGroup>* base_share_group_; |
| 190 static scoped_refptr<gl::GLSurface>* base_surface_; | 192 static scoped_refptr<gl::GLSurface>* base_surface_; |
| 191 static scoped_refptr<gl::GLContext>* base_context_; | 193 static scoped_refptr<gl::GLContext>* base_context_; |
| 192 }; | 194 }; |
| 193 | 195 |
| 194 } // namespace gpu | 196 } // namespace gpu |
| 195 | 197 |
| 196 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 198 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| OLD | NEW |