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

Side by Side Diff: content/browser/renderer_host/render_process_host.h

Issue 7136001: GPU compositing surface handle is no longer sent to renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_HOST_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
11 #include "base/id_map.h" 11 #include "base/id_map.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/process.h" 13 #include "base/process.h"
14 #include "base/process_util.h" 14 #include "base/process_util.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "ipc/ipc_channel_proxy.h" 16 #include "ipc/ipc_channel_proxy.h"
17 #include "ui/gfx/native_widget_types.h"
17 #include "ui/gfx/surface/transport_dib.h" 18 #include "ui/gfx/surface/transport_dib.h"
18 19
19 class Profile; 20 class Profile;
20 struct ViewMsg_SwapOut_Params; 21 struct ViewMsg_SwapOut_Params;
21 22
22 namespace base { 23 namespace base {
23 class SharedMemory; 24 class SharedMemory;
24 } 25 }
25 26
26 namespace net { 27 namespace net {
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 216
216 // Transport DIB functions --------------------------------------------------- 217 // Transport DIB functions ---------------------------------------------------
217 218
218 // Return the TransportDIB for the given id. On Linux, this can involve 219 // Return the TransportDIB for the given id. On Linux, this can involve
219 // mapping shared memory. On Mac, the shared memory is created in the browser 220 // mapping shared memory. On Mac, the shared memory is created in the browser
220 // process and the cached metadata is returned. On Windows, this involves 221 // process and the cached metadata is returned. On Windows, this involves
221 // duplicating the handle from the remote process. The RenderProcessHost 222 // duplicating the handle from the remote process. The RenderProcessHost
222 // still owns the returned DIB. 223 // still owns the returned DIB.
223 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) = 0; 224 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) = 0;
224 225
226 // RenderWidgetHost / compositing surface mapping functions ------------------
227
228 // Set a mapping from a RenderWidgetHost to a compositing surface. Pass a null
229 // handle to remove the mapping.
230 virtual void SetCompositingSurface(
231 int render_widget_id,
232 gfx::PluginWindowHandle compositing_surface) = 0;
233
225 // Static management functions ----------------------------------------------- 234 // Static management functions -----------------------------------------------
226 235
227 // Flag to run the renderer in process. This is primarily 236 // Flag to run the renderer in process. This is primarily
228 // for debugging purposes. When running "in process", the 237 // for debugging purposes. When running "in process", the
229 // browser maintains a single RenderProcessHost which communicates 238 // browser maintains a single RenderProcessHost which communicates
230 // to a RenderProcess which is instantiated in the same process 239 // to a RenderProcess which is instantiated in the same process
231 // with the Browser. All IPC between the Browser and the 240 // with the Browser. All IPC between the Browser and the
232 // Renderer is the same, it's just not crossing a process boundary. 241 // Renderer is the same, it's just not crossing a process boundary.
233 static bool run_renderer_in_process() { 242 static bool run_renderer_in_process() {
234 return run_renderer_in_process_; 243 return run_renderer_in_process_;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Factory object for RenderProcessHosts. Using this factory allows tests to 330 // Factory object for RenderProcessHosts. Using this factory allows tests to
322 // swap out a different one to use a TestRenderProcessHost. 331 // swap out a different one to use a TestRenderProcessHost.
323 class RenderProcessHostFactory { 332 class RenderProcessHostFactory {
324 public: 333 public:
325 virtual ~RenderProcessHostFactory() {} 334 virtual ~RenderProcessHostFactory() {}
326 virtual RenderProcessHost* CreateRenderProcessHost( 335 virtual RenderProcessHost* CreateRenderProcessHost(
327 Profile* profile) const = 0; 336 Profile* profile) const = 0;
328 }; 337 };
329 338
330 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ 339 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698