| 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 SyncPointClient; | 38 class SyncPointClientState; |
| 39 class SyncPointOrderData; | 39 class SyncPointOrderData; |
| 40 class SyncPointManager; | 40 class SyncPointManager; |
| 41 class TransferBuffer; | 41 class TransferBuffer; |
| 42 | 42 |
| 43 namespace gles2 { | 43 namespace gles2 { |
| 44 | 44 |
| 45 class MailboxManager; | 45 class MailboxManager; |
| 46 class GLES2Decoder; | 46 class GLES2Decoder; |
| 47 class GLES2CmdHelper; | 47 class GLES2CmdHelper; |
| 48 class GLES2Implementation; | 48 class GLES2Implementation; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 bool GetBufferChanged(int32_t transfer_buffer_id); | 154 bool GetBufferChanged(int32_t transfer_buffer_id); |
| 155 void SetupBaseContext(); | 155 void SetupBaseContext(); |
| 156 void OnFenceSyncRelease(uint64_t release); | 156 void OnFenceSyncRelease(uint64_t release); |
| 157 bool OnWaitSyncToken(const SyncToken& sync_token); | 157 bool OnWaitSyncToken(const SyncToken& sync_token); |
| 158 | 158 |
| 159 gpu::GpuPreferences gpu_preferences_; | 159 gpu::GpuPreferences gpu_preferences_; |
| 160 | 160 |
| 161 SyncPointManager* sync_point_manager_ = nullptr; // Non-owning. | 161 SyncPointManager* sync_point_manager_ = nullptr; // Non-owning. |
| 162 | 162 |
| 163 scoped_refptr<SyncPointOrderData> sync_point_order_data_; | 163 scoped_refptr<SyncPointOrderData> sync_point_order_data_; |
| 164 std::unique_ptr<SyncPointClient> sync_point_client_; | 164 scoped_refptr<SyncPointClientState> sync_point_client_state_; |
| 165 scoped_refptr<gles2::MailboxManager> mailbox_manager_; | 165 scoped_refptr<gles2::MailboxManager> mailbox_manager_; |
| 166 scoped_refptr<gl::GLShareGroup> share_group_; | 166 scoped_refptr<gl::GLShareGroup> share_group_; |
| 167 std::unique_ptr<CommandBufferService> command_buffer_; | 167 std::unique_ptr<CommandBufferService> command_buffer_; |
| 168 std::unique_ptr<gles2::GLES2Decoder> decoder_; | 168 std::unique_ptr<gles2::GLES2Decoder> decoder_; |
| 169 std::unique_ptr<CommandExecutor> executor_; | 169 std::unique_ptr<CommandExecutor> executor_; |
| 170 scoped_refptr<gl::GLSurface> surface_; | 170 scoped_refptr<gl::GLSurface> surface_; |
| 171 scoped_refptr<gl::GLContext> context_; | 171 scoped_refptr<gl::GLContext> context_; |
| 172 std::unique_ptr<gles2::GLES2CmdHelper> gles2_helper_; | 172 std::unique_ptr<gles2::GLES2CmdHelper> gles2_helper_; |
| 173 std::unique_ptr<TransferBuffer> transfer_buffer_; | 173 std::unique_ptr<TransferBuffer> transfer_buffer_; |
| 174 std::unique_ptr<gles2::GLES2Implementation> gles2_implementation_; | 174 std::unique_ptr<gles2::GLES2Implementation> gles2_implementation_; |
| 175 bool context_lost_allowed_ = false; | 175 bool context_lost_allowed_ = false; |
| 176 bool pause_commands_ = false; | 176 bool pause_commands_ = false; |
| 177 uint32_t paused_order_num_ = 0; | 177 uint32_t paused_order_num_ = 0; |
| 178 | 178 |
| 179 const CommandBufferId command_buffer_id_; | 179 const CommandBufferId command_buffer_id_; |
| 180 uint64_t next_fence_sync_release_ = 1; | 180 uint64_t next_fence_sync_release_ = 1; |
| 181 | 181 |
| 182 bool use_iosurface_memory_buffers_ = false; | 182 bool use_iosurface_memory_buffers_ = false; |
| 183 | 183 |
| 184 // Used on Android to virtualize GL for all contexts. | 184 // Used on Android to virtualize GL for all contexts. |
| 185 static int use_count_; | 185 static int use_count_; |
| 186 static scoped_refptr<gl::GLShareGroup>* base_share_group_; | 186 static scoped_refptr<gl::GLShareGroup>* base_share_group_; |
| 187 static scoped_refptr<gl::GLSurface>* base_surface_; | 187 static scoped_refptr<gl::GLSurface>* base_surface_; |
| 188 static scoped_refptr<gl::GLContext>* base_context_; | 188 static scoped_refptr<gl::GLContext>* base_context_; |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace gpu | 191 } // namespace gpu |
| 192 | 192 |
| 193 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 193 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| OLD | NEW |