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

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

Issue 10833006: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « dbus/property.cc ('k') | media/base/audio_renderer_mixer_input.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 f0c9141e6d5353a261aacacb2d17bb3878a703ba..cda16d44fd97f1662cb7737d7a556a420639704d 100644
--- a/gpu/command_buffer/service/program_manager.cc
+++ b/gpu/command_buffer/service/program_manager.cc
@@ -95,7 +95,10 @@ bool GetUniformNameSansElement(
} // anonymous namespace.
ProgramManager::ProgramInfo::UniformInfo::UniformInfo()
- : size(0) {
+ : size(0),
+ type(GL_NONE),
+ fake_location_base(0),
+ is_array(false) {
}
ProgramManager::ProgramInfo::UniformInfo::UniformInfo(
@@ -237,7 +240,7 @@ void ProgramManager::ProgramInfo::ClearUniforms(
namespace {
struct UniformData {
- UniformData() : size(-1), type(GL_NONE), added(false) {
+ UniformData() : size(-1), type(GL_NONE), location(0), added(false) {
}
std::string queried_name;
std::string corrected_name;
« no previous file with comments | « dbus/property.cc ('k') | media/base/audio_renderer_mixer_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698