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

Unified Diff: gpu/command_buffer/common/gles2_cmd_format_autogen.h

Issue 776603003: Changed the GPU Tracer so the category names can be customized. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Service side GPU trace not turned on when device is turned on Created 6 years 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
Index: gpu/command_buffer/common/gles2_cmd_format_autogen.h
diff --git a/gpu/command_buffer/common/gles2_cmd_format_autogen.h b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
index 923d5a1be138057093ec7985ce427239c42d47f0..bbe9af11f4da9874f07c239225585d5b6d502e52 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -9746,26 +9746,30 @@ struct TraceBeginCHROMIUM {
void SetHeader() { header.SetCmd<ValueType>(); }
- void Init(GLuint _bucket_id) {
+ void Init(GLuint _category_bucket_id, GLuint _name_bucket_id) {
SetHeader();
- bucket_id = _bucket_id;
+ category_bucket_id = _category_bucket_id;
+ name_bucket_id = _name_bucket_id;
}
- void* Set(void* cmd, GLuint _bucket_id) {
- static_cast<ValueType*>(cmd)->Init(_bucket_id);
+ void* Set(void* cmd, GLuint _category_bucket_id, GLuint _name_bucket_id) {
+ static_cast<ValueType*>(cmd)->Init(_category_bucket_id, _name_bucket_id);
return NextCmdAddress<ValueType>(cmd);
}
gpu::CommandHeader header;
- uint32_t bucket_id;
+ uint32_t category_bucket_id;
+ uint32_t name_bucket_id;
};
-COMPILE_ASSERT(sizeof(TraceBeginCHROMIUM) == 8,
- Sizeof_TraceBeginCHROMIUM_is_not_8);
+COMPILE_ASSERT(sizeof(TraceBeginCHROMIUM) == 12,
+ Sizeof_TraceBeginCHROMIUM_is_not_12);
COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, header) == 0,
OffsetOf_TraceBeginCHROMIUM_header_not_0);
-COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, bucket_id) == 4,
- OffsetOf_TraceBeginCHROMIUM_bucket_id_not_4);
+COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, category_bucket_id) == 4,
+ OffsetOf_TraceBeginCHROMIUM_category_bucket_id_not_4);
+COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, name_bucket_id) == 8,
+ OffsetOf_TraceBeginCHROMIUM_name_bucket_id_not_8);
struct TraceEndCHROMIUM {
typedef TraceEndCHROMIUM ValueType;
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/common/gles2_cmd_format_test_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698