Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 2275113002: Provide task runner to GLES2Impl / CommandBuffer at creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-cleanup4
Patch Set: cleanup Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698