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

Unified Diff: content/browser/gpu/browser_gpu_channel_host_factory.h

Issue 10852012: Fix lost context recreation race in BrowserGpuChannelHostFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/browser_gpu_channel_host_factory.h
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.h b/content/browser/gpu/browser_gpu_channel_host_factory.h
index df111696b3c51c4d312f05e1c79f3f36ce3fa7d6..13058e52e041d0d40162a17c3993c9b64fb4a65e 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.h
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.h
@@ -39,13 +39,17 @@ class BrowserGpuChannelHostFactory : public GpuChannelHostFactory {
CreateRequest();
~CreateRequest();
base::WaitableEvent event;
+ int gpu_host_id;
int32 route_id;
};
struct EstablishRequest {
- EstablishRequest();
+ explicit EstablishRequest(CauseForGpuLaunch);
~EstablishRequest();
base::WaitableEvent event;
+ CauseForGpuLaunch cause_for_gpu_launch;
+ int gpu_host_id;
+ bool reused_gpu_process;
IPC::ChannelHandle channel_handle;
GPUInfo gpu_info;
};
@@ -58,9 +62,8 @@ class BrowserGpuChannelHostFactory : public GpuChannelHostFactory {
int32 surface_id,
const GPUCreateCommandBufferConfig& init_params);
static void CommandBufferCreatedOnIO(CreateRequest* request, int32 route_id);
- void EstablishGpuChannelOnIO(EstablishRequest* request,
- CauseForGpuLaunch cause_for_gpu_launch);
- static void GpuChannelEstablishedOnIO(
+ void EstablishGpuChannelOnIO(EstablishRequest* request);
+ void GpuChannelEstablishedOnIO(
EstablishRequest* request,
const IPC::ChannelHandle& channel_handle,
const GPUInfo& gpu_info);
« no previous file with comments | « no previous file | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698