| 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_CLIENT_GLES2_IMPLEMENTATION_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 158 |
| 159 // Number of swap buffers allowed before waiting. | 159 // Number of swap buffers allowed before waiting. |
| 160 static const size_t kMaxSwapBuffers = 2; | 160 static const size_t kMaxSwapBuffers = 2; |
| 161 | 161 |
| 162 GLES2Implementation(GLES2CmdHelper* helper, | 162 GLES2Implementation(GLES2CmdHelper* helper, |
| 163 scoped_refptr<ShareGroup> share_group, | 163 scoped_refptr<ShareGroup> share_group, |
| 164 TransferBufferInterface* transfer_buffer, | 164 TransferBufferInterface* transfer_buffer, |
| 165 bool bind_generates_resource, | 165 bool bind_generates_resource, |
| 166 bool lose_context_when_out_of_memory, | 166 bool lose_context_when_out_of_memory, |
| 167 bool support_client_side_arrays, | 167 bool support_client_side_arrays, |
| 168 GpuControl* gpu_control); | 168 GpuControl* gpu_control, |
| 169 scoped_refptr<base::SingleThreadTaskRunner> task_runner); |
| 169 | 170 |
| 170 ~GLES2Implementation() override; | 171 ~GLES2Implementation() override; |
| 171 | 172 |
| 172 bool Initialize( | 173 bool Initialize( |
| 173 unsigned int starting_transfer_buffer_size, | 174 unsigned int starting_transfer_buffer_size, |
| 174 unsigned int min_transfer_buffer_size, | 175 unsigned int min_transfer_buffer_size, |
| 175 unsigned int max_transfer_buffer_size, | 176 unsigned int max_transfer_buffer_size, |
| 176 unsigned int mapped_memory_limit); | 177 unsigned int mapped_memory_limit); |
| 177 | 178 |
| 178 // The GLES2CmdHelper being used by this GLES2Implementation. You can use | 179 // The GLES2CmdHelper being used by this GLES2Implementation. You can use |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 | 885 |
| 885 inline bool GLES2Implementation::GetTexParameterivHelper( | 886 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 886 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 887 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 887 return false; | 888 return false; |
| 888 } | 889 } |
| 889 | 890 |
| 890 } // namespace gles2 | 891 } // namespace gles2 |
| 891 } // namespace gpu | 892 } // namespace gpu |
| 892 | 893 |
| 893 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 894 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |