cc/gpu: Add URLs for worker contexts in GPU crash reports.
Plumb through the URL used with a worker context to the GPU
so it can be used to currently report the URL for the current page.
This change only adds support for work sent from raster tasks and
when raster decoder is enabled.
[email protected]
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: Ib5b20c0cc54df3ecbfb1ef3e13a14f0fcc65e3cb
Reviewed-on: https://chromium-review.googlesource.com/1145685
Commit-Queue: Khushal <[email protected]>
Reviewed-by: Antoine Labour <[email protected]>
Cr-Commit-Position: refs/heads/master@{#577773}
diff --git a/gpu/command_buffer/raster_cmd_buffer_functions.txt b/gpu/command_buffer/raster_cmd_buffer_functions.txt
index 1226164..9eb89bfc 100644
--- a/gpu/command_buffer/raster_cmd_buffer_functions.txt
+++ b/gpu/command_buffer/raster_cmd_buffer_functions.txt
@@ -53,3 +53,5 @@
GL_APICALL void GL_APIENTRY glCopySubTexture (GLuint source_id, GLuint dest_id, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
GL_APICALL void GL_APIENTRY glTraceBeginCHROMIUM (const char* category_name, const char* trace_name);
GL_APICALL void GL_APIENTRY glTraceEndCHROMIUM (void);
+GL_APICALL void GL_APIENTRY glSetActiveURLCHROMIUM (const char* url);
+GL_APICALL void GL_APIENTRY glResetActiveURLCHROMIUM (void);
\ No newline at end of file