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

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: Make SwapBuffers use the GLES2Decoder GL_Category Created 5 years, 5 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,
37 kTraceCHROMIUM, 36 kTraceCHROMIUM,
38 kTraceDecoder, 37 kTraceDecoder,
39 kTraceDisjoint, // Used internally. 38 kTraceDisjoint, // Used internally.
40 39
41 NUM_TRACER_SOURCES 40 NUM_TRACER_SOURCES
42 }; 41 };
43 42
44 // Marker structure for a Trace. 43 // Marker structure for a Trace.
45 struct TraceMarker { 44 struct TraceMarker {
46 TraceMarker(const std::string& category, const std::string& name); 45 TraceMarker(const std::string& category, const std::string& name);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 214
216 private: 215 private:
217 GPUTracer* gpu_tracer_; 216 GPUTracer* gpu_tracer_;
218 GpuTracerSource source_; 217 GpuTracerSource source_;
219 }; 218 };
220 219
221 } // namespace gles2 220 } // namespace gles2
222 } // namespace gpu 221 } // namespace gpu
223 222
224 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ 223 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_
OLDNEW
« 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