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

Unified Diff: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_trace_marker.txt

Issue 780653007: Added GL_CHROMIUM_trace_marker feature as well as gpu_toplevel markers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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 | « content/common/gpu/client/context_provider_command_buffer.cc ('k') | gpu/blink/webgraphicscontext3d_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_trace_marker.txt
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_trace_marker.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_trace_marker.txt
new file mode 100644
index 0000000000000000000000000000000000000000..7dfb78e57754f998c8fc3b0fd17f11b72919870f
--- /dev/null
+++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_trace_marker.txt
@@ -0,0 +1,63 @@
+Name
+
+ CHROMIUM_trace_marker
+
+Name Strings
+
+ GL_CHROMIUM_trace_marker
+
+Version
+
+ Last Modifed Date: December 17, 2014
+
+Dependencies
+
+ OpenGL ES 2.0 is required.
+
+Overview
+
+ This extension lets you mark chromium style GPU traces. Each trace can
+ specify both a category name and a trace name which will be associated
+ with the trace.
+
+ Each trace's beginning is marked by TraceBeginCHROMIUM and the end can
+ optionally be marked by TraceEndCHROMIUM. If the trace's end is not marked,
+ the trace will automatically end when the graphics context is destroyed.
+
+ Multiple traces can happen simultaneously, however traces act as a stack
+ and must be fully contained within one another. Therefore, you cannot
+ have overlapping traces.
+
+ Once a trace has been recorded, it is up to the application to decide
+ how the traces should be displayed.
+
+New Tokens
+
+ None
+
+New Procedures and Functions
+
+ void TraceBeginCHROMIUM(const char* category_name, const char* trace_name)
+
+ Marks the beginning of when a GPU trace should begin. Once the trace begins
+ it lasts until the graphics context is destroyed or when TraceEndCHROMIUM
+ is called.
+
+
+ void TraceEndCHROMIUM()
+
+ Marks the last trace to end, this will signal the application to stop
+ tracing the previous trace.
+
+Errors
+
+ None.
+
+New State
+
+ None.
+
+Revision History
+
+ 12/17/2014 Documented the extension
+
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.cc ('k') | gpu/blink/webgraphicscontext3d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698