| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 GLManager* virtual_manager; | 68 GLManager* virtual_manager; |
| 69 // Whether or not glBindXXX generates a resource. | 69 // Whether or not glBindXXX generates a resource. |
| 70 bool bind_generates_resource; | 70 bool bind_generates_resource; |
| 71 // Whether or not the context is auto-lost when GL_OUT_OF_MEMORY occurs. | 71 // Whether or not the context is auto-lost when GL_OUT_OF_MEMORY occurs. |
| 72 bool lose_context_when_out_of_memory; | 72 bool lose_context_when_out_of_memory; |
| 73 // Whether or not it's ok to lose the context. | 73 // Whether or not it's ok to lose the context. |
| 74 bool context_lost_allowed; | 74 bool context_lost_allowed; |
| 75 gles2::ContextType context_type; | 75 gles2::ContextType context_type; |
| 76 // Force shader name hashing for all context types. | 76 // Force shader name hashing for all context types. |
| 77 bool force_shader_name_hashing; | 77 bool force_shader_name_hashing; |
| 78 // Whether the buffer is multisampled. |
| 79 bool multisampled; |
| 78 }; | 80 }; |
| 79 GLManager(); | 81 GLManager(); |
| 80 ~GLManager() override; | 82 ~GLManager() override; |
| 81 | 83 |
| 82 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer( | 84 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer( |
| 83 const gfx::Size& size, | 85 const gfx::Size& size, |
| 84 gfx::BufferFormat format); | 86 gfx::BufferFormat format); |
| 85 | 87 |
| 86 void Initialize(const Options& options); | 88 void Initialize(const Options& options); |
| 87 void InitializeWithCommandLine(const Options& options, | 89 void InitializeWithCommandLine(const Options& options, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // Used on Android to virtualize GL for all contexts. | 187 // Used on Android to virtualize GL for all contexts. |
| 186 static int use_count_; | 188 static int use_count_; |
| 187 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; | 189 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; |
| 188 static scoped_refptr<gfx::GLSurface>* base_surface_; | 190 static scoped_refptr<gfx::GLSurface>* base_surface_; |
| 189 static scoped_refptr<gfx::GLContext>* base_context_; | 191 static scoped_refptr<gfx::GLContext>* base_context_; |
| 190 }; | 192 }; |
| 191 | 193 |
| 192 } // namespace gpu | 194 } // namespace gpu |
| 193 | 195 |
| 194 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 196 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| OLD | NEW |