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

Unified Diff: gpu/command_buffer/service/program_manager.cc

Issue 2124953002: save vertex attribute divisor values for each program (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove non used code Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/program_manager.h ('k') | gpu/command_buffer/service/vertex_attrib_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/program_manager.cc
diff --git a/gpu/command_buffer/service/program_manager.cc b/gpu/command_buffer/service/program_manager.cc
index 8afa0b13fe5788bb729a597395a7c96256bbf032..ec825d3cd79b93dd688563df1332ac87d3daf700 100644
--- a/gpu/command_buffer/service/program_manager.cc
+++ b/gpu/command_buffer/service/program_manager.cc
@@ -288,6 +288,7 @@ void Program::Reset() {
program_output_infos_.clear();
sampler_indices_.clear();
attrib_location_to_index_map_.clear();
+ attrib_location_to_divisor_map_.clear();
}
std::string Program::ProcessLogInfo(
@@ -497,6 +498,12 @@ void Program::Update() {
}
}
+ // Create attrib location to divisor map
+ attrib_location_to_divisor_map_.resize(max_location + 1);
+ for (GLint ii = 0; ii <= max_location; ++ii) {
+ attrib_location_to_divisor_map_[ii] = 0;
+ }
+
if (manager_->gpu_preferences_.enable_gpu_service_logging_gpu) {
DVLOG(1) << "----: attribs for service_id: " << service_id();
for (size_t ii = 0; ii < attrib_infos_.size(); ++ii) {
« no previous file with comments | « gpu/command_buffer/service/program_manager.h ('k') | gpu/command_buffer/service/vertex_attrib_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698