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

Unified Diff: gpu/common/gpu_trace_event.cc

Issue 6713127: Initialize a few uninitialized members in GPU classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/texture_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/common/gpu_trace_event.cc
===================================================================
--- gpu/common/gpu_trace_event.cc (revision 79379)
+++ gpu/common/gpu_trace_event.cc (working copy)
@@ -57,7 +57,13 @@
}
}
-TraceEvent::TraceEvent() {
+TraceEvent::TraceEvent()
+ : processId(0),
+ threadId(0),
+ phase(GPU_TRACE_EVENT_PHASE_BEGIN),
+ category(NULL),
+ name(NULL) {
+ memset(&argNames, 0, sizeof(argNames));
}
TraceEvent::~TraceEvent() {
@@ -129,7 +135,7 @@
TraceCategory* TraceLog::GetCategory(const char* name) {
AutoLock lock(lock_);
// TODO(nduca): replace with a hash_map.
- for (int i = static_cast<int>(categories_.size()) - 1; i >= 0; i-- ) {
+ for (int i = static_cast<int>(categories_.size()) - 1; i >= 0; i--) {
if (strcmp(categories_[i]->name(), name) == 0)
return categories_[i];
}
« no previous file with comments | « gpu/command_buffer/service/texture_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698