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

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

Issue 924023003: gpu: Initialize GLFakeQueries data members. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_tracer_unittest.cc
diff --git a/gpu/command_buffer/service/gpu_tracer_unittest.cc b/gpu/command_buffer/service/gpu_tracer_unittest.cc
index 37bdb8ee8f76e4f96a25d1f2320a9af55197948d..30a663d899787ed75b92cf167a5544e7a979965d 100644
--- a/gpu/command_buffer/service/gpu_tracer_unittest.cc
+++ b/gpu/command_buffer/service/gpu_tracer_unittest.cc
@@ -49,7 +49,7 @@ class MockOutputter : public Outputter {
class GlFakeQueries {
public:
- GlFakeQueries() {}
+ GlFakeQueries() : alloced_queries_(), query_timestamp_() {}
Nico 2015/02/13 19:42:51 You don't need this. The default constructors of c
Daniele Castagna 2015/02/13 19:46:44 Done.
void Reset() {
current_time_ = 0;
@@ -141,9 +141,9 @@ class GlFakeQueries {
}
protected:
- bool disjointed_;
- GLint64 current_time_;
- GLuint next_query_id_;
+ bool disjointed_ = false;
+ GLint64 current_time_ = 0;
+ GLuint next_query_id_ = 0;
std::set<GLuint> alloced_queries_;
std::map<GLuint, GLint64> query_timestamp_;
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698