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

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

Issue 1018773002: Added Destroy() functions for GPUTimer and GPUTracer/GPUTrace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete GPU Tracer after destroying it in decoder Created 5 years, 9 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 1b2c31578a4110c7975bd279fe414c3dddc76b4a..3f8ec84812f496717f94c563f64ffeb6ef3dc4eb 100644
--- a/gpu/command_buffer/service/gpu_tracer.h
+++ b/gpu/command_buffer/service/gpu_tracer.h
@@ -56,6 +56,8 @@ class GPU_EXPORT GPUTracer
explicit GPUTracer(gles2::GLES2Decoder* decoder);
virtual ~GPUTracer();
+ void Destroy(bool have_context);
+
// Scheduled processing in decoder begins.
bool BeginDecoding();
@@ -83,13 +85,14 @@ class GPU_EXPORT GPUTracer
void Process();
void ProcessTraces();
+ void ClearFinishedTraces(bool have_context);
void IssueProcessTask();
scoped_refptr<gfx::GPUTimingClient> gpu_timing_client_;
scoped_refptr<Outputter> outputter_;
std::vector<TraceMarker> markers_[NUM_TRACER_SOURCES];
- std::deque<scoped_refptr<GPUTrace> > traces_;
+ std::deque<scoped_refptr<GPUTrace> > finished_traces_;
const unsigned char* gpu_trace_srv_category;
const unsigned char* gpu_trace_dev_category;
@@ -155,6 +158,8 @@ class GPU_EXPORT GPUTrace
const std::string& name,
const bool enabled);
+ void Destroy(bool have_context);
+
void Start(bool trace_service);
void End(bool tracing_service);
bool IsAvailable();
« 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