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

Side by Side Diff: gpu/command_buffer/service/gpu_tracer.h

Issue 1132283003: Merge Group Markers into Chromium Traces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed references to group markers in unit tests Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains the GPUTrace class. 5 // This file contains the GPUTrace class.
6 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ 6 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_
7 #define GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ 7 #define GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_
8 8
9 #include <deque> 9 #include <deque>
10 #include <stack> 10 #include <stack>
(...skipping 15 matching lines...) Expand all
26 namespace gpu { 26 namespace gpu {
27 namespace gles2 { 27 namespace gles2 {
28 28
29 class Outputter; 29 class Outputter;
30 class GPUTrace; 30 class GPUTrace;
31 31
32 // Id used to keep trace namespaces separate 32 // Id used to keep trace namespaces separate
33 enum GpuTracerSource { 33 enum GpuTracerSource {
34 kTraceGroupInvalid = -1, 34 kTraceGroupInvalid = -1,
35 35
36 kTraceGroupMarker = 0, 36 kTraceCHROMIUM = 0,
37 kTraceCHROMIUM = 1, 37 kTraceDecoder = 1,
38 kTraceDecoder = 2,
39 38
40 NUM_TRACER_SOURCES 39 NUM_TRACER_SOURCES
41 }; 40 };
42 41
43 // Marker structure for a Trace. 42 // Marker structure for a Trace.
44 struct TraceMarker { 43 struct TraceMarker {
45 TraceMarker(const std::string& category, const std::string& name); 44 TraceMarker(const std::string& category, const std::string& name);
46 ~TraceMarker(); 45 ~TraceMarker();
47 46
48 std::string category_; 47 std::string category_;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 210
212 private: 211 private:
213 GPUTracer* gpu_tracer_; 212 GPUTracer* gpu_tracer_;
214 GpuTracerSource source_; 213 GpuTracerSource source_;
215 }; 214 };
216 215
217 } // namespace gles2 216 } // namespace gles2
218 } // namespace gpu 217 } // namespace gpu
219 218
220 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ 219 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698