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

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

Issue 1314053002: Have GPUTracer process traces during CommandBuffer Idle time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gpu_tracer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 596e60bfa76131e967bcc9338665eb71bcd453d3..cb3f8902cac9720122b79dc9532870c02ec9056d 100644
--- a/gpu/command_buffer/service/gpu_tracer.h
+++ b/gpu/command_buffer/service/gpu_tracer.h
@@ -72,6 +72,9 @@ class GPU_EXPORT GPUTracer
// End the last started trace marker.
bool End(GpuTracerSource source);
+ bool HasTracesToProcess();
+ void ProcessTraces();
+
virtual bool IsTracing();
// Retrieve the name of the current open trace.
@@ -82,15 +85,10 @@ class GPU_EXPORT GPUTracer
protected:
// Trace Processing.
virtual scoped_refptr<Outputter> CreateOutputter(const std::string& name);
- virtual void PostTask();
- void Process();
- void ProcessTraces();
bool CheckDisjointStatus();
void ClearOngoingTraces(bool have_context);
- void IssueProcessTask();
-
scoped_refptr<gfx::GPUTimingClient> gpu_timing_client_;
scoped_refptr<Outputter> outputter_;
std::vector<TraceMarker> markers_[NUM_TRACER_SOURCES];
@@ -102,7 +100,6 @@ class GPU_EXPORT GPUTracer
int64 disjoint_time_ = 0;
bool gpu_executing_ = false;
- bool process_posted_ = false;
bool began_device_traces_ = false;
private:
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gpu_tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698