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

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

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 // A class to emulate GLES2 over command buffers. 5 // A class to emulate GLES2 over command buffers.
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 8
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 CHECK_EQ(0, gles2_implementation_->use_count_); 126 CHECK_EQ(0, gles2_implementation_->use_count_);
127 } 127 }
128 128
129 GLES2Implementation::GLES2Implementation( 129 GLES2Implementation::GLES2Implementation(
130 GLES2CmdHelper* helper, 130 GLES2CmdHelper* helper,
131 scoped_refptr<ShareGroup> share_group, 131 scoped_refptr<ShareGroup> share_group,
132 TransferBufferInterface* transfer_buffer, 132 TransferBufferInterface* transfer_buffer,
133 bool bind_generates_resource, 133 bool bind_generates_resource,
134 bool lose_context_when_out_of_memory, 134 bool lose_context_when_out_of_memory,
135 bool support_client_side_arrays, 135 bool support_client_side_arrays,
136 GpuControl* gpu_control) 136 GpuControl* gpu_control,
137 scoped_refptr<base::SingleThreadTaskRunner> task_runner)
piman 2016/08/25 22:51:02 In what way is this task runner meant to be used?
137 : helper_(helper), 138 : helper_(helper),
138 transfer_buffer_(transfer_buffer), 139 transfer_buffer_(transfer_buffer),
139 chromium_framebuffer_multisample_(kUnknownExtensionStatus), 140 chromium_framebuffer_multisample_(kUnknownExtensionStatus),
140 pack_alignment_(4), 141 pack_alignment_(4),
141 pack_row_length_(0), 142 pack_row_length_(0),
142 pack_skip_pixels_(0), 143 pack_skip_pixels_(0),
143 pack_skip_rows_(0), 144 pack_skip_rows_(0),
144 unpack_alignment_(4), 145 unpack_alignment_(4),
145 unpack_row_length_(0), 146 unpack_row_length_(0),
146 unpack_image_height_(0), 147 unpack_image_height_(0),
(...skipping 6789 matching lines...) Expand 10 before | Expand all | Expand 10 after
6936 cached_extensions_.clear(); 6937 cached_extensions_.clear();
6937 } 6938 }
6938 6939
6939 // Include the auto-generated part of this file. We split this because it means 6940 // Include the auto-generated part of this file. We split this because it means
6940 // we can easily edit the non-auto generated parts right here in this file 6941 // we can easily edit the non-auto generated parts right here in this file
6941 // instead of having to edit some template or the code generator. 6942 // instead of having to edit some template or the code generator.
6942 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 6943 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
6943 6944
6944 } // namespace gles2 6945 } // namespace gles2
6945 } // namespace gpu 6946 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/gles2_implementation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698