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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 10695133: Improve GPU process URL crash reporting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/gpu_command_buffer_stub.h
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h
index a6a90d6def77d3e2d93bcf4256f9badd20c79f54..354152cc5fd00c1064dc678549c76b359363c1c9 100644
--- a/content/common/gpu/gpu_command_buffer_stub.h
+++ b/content/common/gpu/gpu_command_buffer_stub.h
@@ -16,6 +16,7 @@
#include "content/common/content_export.h"
#include "content/common/gpu/gpu_memory_allocation.h"
#include "content/common/gpu/gpu_memory_allocation.h"
+#include "googleurl/src/gurl.h"
#include "gpu/command_buffer/common/constants.h"
#include "gpu/command_buffer/service/command_buffer_service.h"
#include "gpu/command_buffer/service/context_group.h"
@@ -104,7 +105,8 @@ class GpuCommandBufferStub
int32 route_id,
int32 surface_id,
GpuWatchdog* watchdog,
- bool software);
+ bool software,
+ const GURL& active_url);
virtual ~GpuCommandBufferStub();
@@ -229,6 +231,9 @@ class GpuCommandBufferStub
void ReportState();
+ // Wrapper for GpuScheduler::PutChanged that sets the crash report URL.
+ void PutChanged();
+
// The lifetime of objects of this class is managed by a GpuChannel. The
// GpuChannels destroy all the GpuCommandBufferStubs that they own when they
// are destroyed. So a raw pointer is safe.
@@ -276,6 +281,9 @@ class GpuCommandBufferStub
scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_;
+ GURL active_url_;
+ size_t active_url_hash_;
+
DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
};

Powered by Google App Engine
This is Rietveld 408576698