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

Unified Diff: gpu/command_buffer/client/program_info_manager.cc

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/client/program_info_manager.cc
diff --git a/gpu/command_buffer/client/program_info_manager.cc b/gpu/command_buffer/client/program_info_manager.cc
index 89e8913a63ae382ba1dc630e88e707549c01ba4d..779d914ac4c441a6fc40d0a00a958281a7df7c83 100644
--- a/gpu/command_buffer/client/program_info_manager.cc
+++ b/gpu/command_buffer/client/program_info_manager.cc
@@ -332,10 +332,11 @@ void ProgramInfoManager::Program::UpdateES2(const std::vector<int8>& result) {
if (!link_status_) {
return;
}
- DCHECK_EQ(0u, attrib_infos_.size());
- DCHECK_EQ(0u, uniform_infos_.size());
- DCHECK_EQ(0, max_attrib_name_length_);
- DCHECK_EQ(0, max_uniform_name_length_);
+ attrib_infos_.clear();
+ uniform_infos_.clear();
+ frag_data_locations_.clear();
+ max_attrib_name_length_ = 0;
+ max_uniform_name_length_ = 0;
const ProgramInput* inputs = LocalGetAs<const ProgramInput*>(
result, sizeof(*header),
sizeof(ProgramInput) * (header->num_attribs + header->num_uniforms));
@@ -381,8 +382,8 @@ void ProgramInfoManager::Program::UpdateES3UniformBlocks(
// This should only happen on a lost context.
return;
}
- DCHECK_EQ(0u, uniform_blocks_.size());
- DCHECK_EQ(0u, active_uniform_block_max_name_length_);
+ uniform_blocks_.clear();
+ active_uniform_block_max_name_length_ = 0;
// |result| comes from GPU process. We consider it trusted data. Therefore,
// no need to check for overflows as the GPU side did the checks already.
@@ -452,7 +453,7 @@ void ProgramInfoManager::Program::UpdateES3Uniformsiv(
// This should only happen on a lost context.
return;
}
- DCHECK_EQ(0u, uniforms_es3_.size());
+ uniforms_es3_.clear();
// |result| comes from GPU process. We consider it trusted data. Therefore,
// no need to check for overflows as the GPU side did the checks already.
@@ -494,8 +495,8 @@ void ProgramInfoManager::Program::UpdateES3TransformFeedbackVaryings(
// This should only happen on a lost context.
return;
}
- DCHECK_EQ(0u, transform_feedback_varyings_.size());
- DCHECK_EQ(0u, transform_feedback_varying_max_length_);
+ transform_feedback_varyings_.clear();
+ transform_feedback_varying_max_length_ = 0;
// |result| comes from GPU process. We consider it trusted data. Therefore,
// no need to check for overflows as the GPU side did the checks already.
« no previous file with comments | « gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h ('k') | gpu/command_buffer/cmd_buffer_functions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698