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

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

Issue 813573003: Fixed GPU tracing so the categories do not get mixed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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.h
diff --git a/gpu/command_buffer/service/gpu_tracer.h b/gpu/command_buffer/service/gpu_tracer.h
index 603322079c18e883a00f0787a4b9bf128f70e7bc..e3fa332dcaeb96151d6fc8dff4e809fb84e901c9 100644
--- a/gpu/command_buffer/service/gpu_tracer.h
+++ b/gpu/command_buffer/service/gpu_tracer.h
@@ -73,8 +73,8 @@ class GPUTracer : public base::SupportsWeakPtr<GPUTracer> {
// Retrieve the name of the current open trace.
// Returns empty string if no current open trace.
- const std::string& CurrentCategory() const;
- const std::string& CurrentName() const;
+ const std::string& CurrentCategory(GpuTracerSource source) const;
+ const std::string& CurrentName(GpuTracerSource source) const;
private:
// Trace Processing.
@@ -147,11 +147,8 @@ class GPU_EXPORT GPUTrace
bool IsEnabled() { return tracer_type_ != kTracerTypeInvalid; }
- const std::string& category() { return category_; }
- const std::string& name() { return name_; }
-
void Start(bool trace_service);
- void End(bool tracing_service);
+ void End(bool trace_service);
bool IsAvailable();
void Process();

Powered by Google App Engine
This is Rietveld 408576698