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

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

Issue 9194005: gpu: reference target surfaces through a globally unique surface id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix more tests Created 8 years, 11 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/gpu/gpu_channel_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // Transport DIB functions --------------------------------------------------- 116 // Transport DIB functions ---------------------------------------------------
117 117
118 // Return the TransportDIB for the given id. On Linux, this can involve 118 // Return the TransportDIB for the given id. On Linux, this can involve
119 // mapping shared memory. On Mac, the shared memory is created in the browser 119 // mapping shared memory. On Mac, the shared memory is created in the browser
120 // process and the cached metadata is returned. On Windows, this involves 120 // process and the cached metadata is returned. On Windows, this involves
121 // duplicating the handle from the remote process. The RenderProcessHost 121 // duplicating the handle from the remote process. The RenderProcessHost
122 // still owns the returned DIB. 122 // still owns the returned DIB.
123 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) = 0; 123 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) = 0;
124 124
125 // RenderWidgetHost / compositing surface mapping functions ------------------
126
127 // Set a mapping from a RenderWidgetHost to a compositing surface. Pass a null
128 // handle to remove the mapping.
129 virtual void SetCompositingSurface(
130 int render_widget_id,
131 gfx::PluginWindowHandle compositing_surface) = 0;
132
133 // Returns the user browser context associated with this renderer process. 125 // Returns the user browser context associated with this renderer process.
134 virtual content::BrowserContext* GetBrowserContext() const = 0; 126 virtual content::BrowserContext* GetBrowserContext() const = 0;
135 127
136 // Returns the unique ID for this child process. This can be used later in 128 // Returns the unique ID for this child process. This can be used later in
137 // a call to FromID() to get back to this object (this is used to avoid 129 // a call to FromID() to get back to this object (this is used to avoid
138 // sending non-threadsafe pointers to other threads). 130 // sending non-threadsafe pointers to other threads).
139 // 131 //
140 // This ID will be unique for all child processes, including workers, plugins, 132 // This ID will be unique for all child processes, including workers, plugins,
141 // etc. It is generated by ChildProcessInfo. 133 // etc. It is generated by ChildProcessInfo.
142 virtual int GetID() const = 0; 134 virtual int GetID() const = 0;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // Overrides the default heuristic for limiting the max renderer process 227 // Overrides the default heuristic for limiting the max renderer process
236 // count. This is useful for unit testing process limit behaviors. 228 // count. This is useful for unit testing process limit behaviors.
237 // A value of zero means to use the default heuristic. 229 // A value of zero means to use the default heuristic.
238 static void SetMaxRendererProcessCountForTest(size_t count); 230 static void SetMaxRendererProcessCountForTest(size_t count);
239 }; 231 };
240 232
241 } // namespace content. 233 } // namespace content.
242 234
243 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 235 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
244 236
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/gpu/gpu_channel_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698