Index: content/common/gpu/client/gl_helper_unittest.cc |
diff --git a/content/common/gpu/client/gl_helper_unittest.cc b/content/common/gpu/client/gl_helper_unittest.cc |
index 25af9f6b23505a3392ddb605ed429873294d1723..b86716614ed25c6d68d67d3084ee39b07a7469f7 100644 |
--- a/content/common/gpu/client/gl_helper_unittest.cc |
+++ b/content/common/gpu/client/gl_helper_unittest.cc |
@@ -118,7 +118,11 @@ class GLHelperTest : public testing::Test { |
CHECK(item->GetAsDictionary(&dict)); |
std::string name; |
CHECK(dict->GetString("name", &name)); |
- (*event_counts)[name]++; |
+ std::string trace_type; |
+ CHECK(dict->GetString("ph", &trace_type)); |
+ // Count all except END traces, as they come in BEGIN/END pairs. |
+ if (trace_type != "E") |
+ (*event_counts)[name]++; |
VLOG(1) << "trace name: " << name; |
} |
} |