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

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

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/service/gpu_tracer.cc
diff --git a/gpu/command_buffer/service/gpu_tracer.cc b/gpu/command_buffer/service/gpu_tracer.cc
index 2853e96ccf651dd2954582ac6ef3839e2dff9c83..364159ba4ccd02842b84ab5ad503d80a4d45fda8 100644
--- a/gpu/command_buffer/service/gpu_tracer.cc
+++ b/gpu/command_buffer/service/gpu_tracer.cc
@@ -76,19 +76,15 @@ void TraceOutputter::TraceDevice(const std::string& category,
}
void TraceOutputter::TraceServiceBegin(const std::string& category,
- const std::string& name,
- void* id) {
- TRACE_EVENT_COPY_ASYNC_BEGIN1(TRACE_DISABLED_BY_DEFAULT("gpu.service"),
- name.c_str(), this,
- "gl_category", category.c_str());
+ const std::string& name) {
+ TRACE_EVENT_COPY_BEGIN1(TRACE_DISABLED_BY_DEFAULT("gpu.service"),
+ name.c_str(), "gl_category", category.c_str());
}
void TraceOutputter::TraceServiceEnd(const std::string& category,
- const std::string& name,
- void* id) {
- TRACE_EVENT_COPY_ASYNC_END1(TRACE_DISABLED_BY_DEFAULT("gpu.service"),
- name.c_str(), this,
- "gl_category", category.c_str());
+ const std::string& name) {
+ TRACE_EVENT_COPY_END1(TRACE_DISABLED_BY_DEFAULT("gpu.service"),
+ name.c_str(), "gl_category", category.c_str());
}
GPUTrace::GPUTrace(scoped_refptr<Outputter> outputter,
@@ -132,7 +128,7 @@ GPUTrace::~GPUTrace() {
void GPUTrace::Start(bool trace_service) {
if (trace_service) {
- outputter_->TraceServiceBegin(category_, name_, this);
+ outputter_->TraceServiceBegin(category_, name_);
}
switch (tracer_type_) {
@@ -174,7 +170,7 @@ void GPUTrace::End(bool tracing_service) {
}
if (tracing_service) {
- outputter_->TraceServiceEnd(category_, name_, this);
+ outputter_->TraceServiceEnd(category_, name_);
}
}

Powered by Google App Engine
This is Rietveld 408576698