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

Side by Side Diff: content/browser/gpu/gpu_process_host.h

Issue 9619017: Fix context sharing between channels to be order-independent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 static GpuProcessHost* FromID(int host_id); 61 static GpuProcessHost* FromID(int host_id);
62 int host_id() const { return host_id_; } 62 int host_id() const { return host_id_; }
63 63
64 // IPC::Message::Sender implementation. 64 // IPC::Message::Sender implementation.
65 virtual bool Send(IPC::Message* msg) OVERRIDE; 65 virtual bool Send(IPC::Message* msg) OVERRIDE;
66 66
67 // Tells the GPU process to create a new channel for communication with a 67 // Tells the GPU process to create a new channel for communication with a
68 // client. Once the GPU process responds asynchronously with the IPC handle 68 // client. Once the GPU process responds asynchronously with the IPC handle
69 // and GPUInfo, we call the callback. 69 // and GPUInfo, we call the callback.
70 void EstablishGpuChannel(int client_id, 70 void EstablishGpuChannel(int client_id,
71 int share_client_id, 71 bool share_context,
72 const EstablishChannelCallback& callback); 72 const EstablishChannelCallback& callback);
73 73
74 // Tells the GPU process to create a new command buffer that draws into the 74 // Tells the GPU process to create a new command buffer that draws into the
75 // given surface. 75 // given surface.
76 void CreateViewCommandBuffer( 76 void CreateViewCommandBuffer(
77 const gfx::GLSurfaceHandle& compositing_surface, 77 const gfx::GLSurfaceHandle& compositing_surface,
78 int surface_id, 78 int surface_id,
79 int client_id, 79 int client_id,
80 const GPUCreateCommandBufferConfig& init_params, 80 const GPUCreateCommandBufferConfig& init_params,
81 const CreateCommandBufferCallback& callback); 81 const CreateCommandBufferCallback& callback);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 static bool gpu_enabled_; 175 static bool gpu_enabled_;
176 176
177 static bool hardware_gpu_enabled_; 177 static bool hardware_gpu_enabled_;
178 178
179 scoped_ptr<BrowserChildProcessHostImpl> process_; 179 scoped_ptr<BrowserChildProcessHostImpl> process_;
180 180
181 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 181 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
182 }; 182 };
183 183
184 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 184 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_channel_host_factory.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698