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

Side by Side Diff: gpu/command_buffer/service/program_manager.h

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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_SERVICE_PROGRAM_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 GLint GetUniformFakeLocation(const std::string& name) const; 142 GLint GetUniformFakeLocation(const std::string& name) const;
143 143
144 // Gets the UniformInfo of a uniform by location. 144 // Gets the UniformInfo of a uniform by location.
145 const UniformInfo* GetUniformInfoByFakeLocation( 145 const UniformInfo* GetUniformInfoByFakeLocation(
146 GLint fake_location, GLint* real_location, GLint* array_index) const; 146 GLint fake_location, GLint* real_location, GLint* array_index) const;
147 147
148 // Gets all the program info. 148 // Gets all the program info.
149 void GetProgramInfo( 149 void GetProgramInfo(
150 ProgramManager* manager, CommonDecoder::Bucket* bucket) const; 150 ProgramManager* manager, CommonDecoder::Bucket* bucket) const;
151 151
152 // Gets all the UniformBlock info.
153 // Return false on overflow.
154 bool GetUniformBlocks(CommonDecoder::Bucket* bucket) const;
155
152 // Sets the sampler values for a uniform. 156 // Sets the sampler values for a uniform.
153 // This is safe to call for any location. If the location is not 157 // This is safe to call for any location. If the location is not
154 // a sampler uniform nothing will happen. 158 // a sampler uniform nothing will happen.
155 // Returns false if fake_location is a sampler and any value 159 // Returns false if fake_location is a sampler and any value
156 // is >= num_texture_units. Returns true otherwise. 160 // is >= num_texture_units. Returns true otherwise.
157 bool SetSamplers( 161 bool SetSamplers(
158 GLint num_texture_units, GLint fake_location, 162 GLint num_texture_units, GLint fake_location,
159 GLsizei count, const GLint* value); 163 GLsizei count, const GLint* value);
160 164
161 bool IsDeleted() const { 165 bool IsDeleted() const {
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 443
440 uint32 max_varying_vectors_; 444 uint32 max_varying_vectors_;
441 445
442 DISALLOW_COPY_AND_ASSIGN(ProgramManager); 446 DISALLOW_COPY_AND_ASSIGN(ProgramManager);
443 }; 447 };
444 448
445 } // namespace gles2 449 } // namespace gles2
446 } // namespace gpu 450 } // namespace gpu
447 451
448 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ 452 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/memory_tracking.h ('k') | gpu/command_buffer/service/program_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698