| 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 GLContext; | 28 class GLContext; |
| 29 class GLShareGroup; | 29 class GLShareGroup; |
| 30 class GLSurface; | 30 class GLSurface; |
| 31 | 31 |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace gpu { | 34 namespace gpu { |
| 35 | 35 |
| 36 class CommandBufferService; | 36 class CommandBufferService; |
| 37 class CommandExecutor; | 37 class CommandExecutor; |
| 38 class ImageFactory; |
| 38 class SyncPointClient; | 39 class SyncPointClient; |
| 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 ContextGroup; | 46 class ContextGroup; |
| 46 class MailboxManager; | 47 class MailboxManager; |
| 47 class GLES2Decoder; | 48 class GLES2Decoder; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 70 bool bind_generates_resource; | 71 bool bind_generates_resource; |
| 71 // Whether or not the context is auto-lost when GL_OUT_OF_MEMORY occurs. | 72 // Whether or not the context is auto-lost when GL_OUT_OF_MEMORY occurs. |
| 72 bool lose_context_when_out_of_memory; | 73 bool lose_context_when_out_of_memory; |
| 73 // Whether or not it's ok to lose the context. | 74 // Whether or not it's ok to lose the context. |
| 74 bool context_lost_allowed; | 75 bool context_lost_allowed; |
| 75 gles2::ContextType context_type; | 76 gles2::ContextType context_type; |
| 76 // Force shader name hashing for all context types. | 77 // Force shader name hashing for all context types. |
| 77 bool force_shader_name_hashing; | 78 bool force_shader_name_hashing; |
| 78 // Whether the buffer is multisampled. | 79 // Whether the buffer is multisampled. |
| 79 bool multisampled; | 80 bool multisampled; |
| 81 // Whether the backbuffer has an alpha channel. |
| 82 bool backbuffer_alpha; |
| 83 // The ImageFactory to use to generate images for the backbuffer. |
| 84 gpu::ImageFactory* image_factory; |
| 85 // Enable the feature |arb_texture_rectangle|. |
| 86 bool enable_arb_texture_rectangle; |
| 80 }; | 87 }; |
| 81 GLManager(); | 88 GLManager(); |
| 82 ~GLManager() override; | 89 ~GLManager() override; |
| 83 | 90 |
| 84 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer( | 91 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer( |
| 85 const gfx::Size& size, | 92 const gfx::Size& size, |
| 86 gfx::BufferFormat format); | 93 gfx::BufferFormat format); |
| 87 | 94 |
| 88 void Initialize(const Options& options); | 95 void Initialize(const Options& options); |
| 89 void InitializeWithCommandLine(const Options& options, | 96 void InitializeWithCommandLine(const Options& options, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // Used on Android to virtualize GL for all contexts. | 194 // Used on Android to virtualize GL for all contexts. |
| 188 static int use_count_; | 195 static int use_count_; |
| 189 static scoped_refptr<gl::GLShareGroup>* base_share_group_; | 196 static scoped_refptr<gl::GLShareGroup>* base_share_group_; |
| 190 static scoped_refptr<gl::GLSurface>* base_surface_; | 197 static scoped_refptr<gl::GLSurface>* base_surface_; |
| 191 static scoped_refptr<gl::GLContext>* base_context_; | 198 static scoped_refptr<gl::GLContext>* base_context_; |
| 192 }; | 199 }; |
| 193 | 200 |
| 194 } // namespace gpu | 201 } // namespace gpu |
| 195 | 202 |
| 196 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 203 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| OLD | NEW |