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

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: using net hash function instead of messing with hash_tables.h 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
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 caafa70239b33748a28e91fe275aec5065e91469..55c2be9b69dc9a3e3d9281da44fab864eff5422f 100644
--- a/content/common/gpu/gpu_command_buffer_stub.h
+++ b/content/common/gpu/gpu_command_buffer_stub.h
@@ -15,6 +15,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"
@@ -103,7 +104,8 @@ class GpuCommandBufferStub
int32 route_id,
int32 surface_id,
GpuWatchdog* watchdog,
- bool software);
+ bool software,
+ const GURL& active_url);
virtual ~GpuCommandBufferStub();
@@ -222,6 +224,9 @@ class GpuCommandBufferStub
void ReportState();
+ // Wrapper for GpuScheduler::PutChanged that sets the crash report URL.
+ void PutChanged();
+
// Poll the command buffer to execute work.
void PollWork();
@@ -279,6 +284,9 @@ class GpuCommandBufferStub
scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_;
+ GURL active_url_;
+ size_t active_url_hash_;
+
DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
};
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698