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

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

Issue 780133002: Add optimization for CHROMIUM_subscribe_uniform extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: piman@ review 3 Created 6 years 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
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/public/test/mock_render_process_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) 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_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/kill.h" 10 #include "base/process/kill.h"
11 #include "base/process/process_handle.h" 11 #include "base/process/process_handle.h"
12 #include "base/supports_user_data.h" 12 #include "base/supports_user_data.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "ipc/ipc_channel_proxy.h" 14 #include "ipc/ipc_channel_proxy.h"
15 #include "ipc/ipc_sender.h" 15 #include "ipc/ipc_sender.h"
16 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
17 17
18 class GURL; 18 class GURL;
19 struct ViewMsg_SwapOut_Params; 19 struct ViewMsg_SwapOut_Params;
20 20
21 namespace base { 21 namespace base {
22 class TimeDelta; 22 class TimeDelta;
23 } 23 }
24 24
25 namespace gpu {
26 union ValueState;
27 }
28
25 namespace content { 29 namespace content {
26 class BrowserContext; 30 class BrowserContext;
27 class BrowserMessageFilter; 31 class BrowserMessageFilter;
28 class RenderProcessHostObserver; 32 class RenderProcessHostObserver;
29 class RenderWidgetHost; 33 class RenderWidgetHost;
30 class ServiceRegistry; 34 class ServiceRegistry;
31 class StoragePartition; 35 class StoragePartition;
32 struct GlobalRequestID; 36 struct GlobalRequestID;
33 37
34 // Interface that represents the browser side of the browser <-> renderer 38 // Interface that represents the browser side of the browser <-> renderer
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // Returns the ServiceRegistry for this process. 236 // Returns the ServiceRegistry for this process.
233 virtual ServiceRegistry* GetServiceRegistry() = 0; 237 virtual ServiceRegistry* GetServiceRegistry() = 0;
234 238
235 // PlzNavigate 239 // PlzNavigate
236 // Returns the time the first call to Init completed successfully (after a new 240 // Returns the time the first call to Init completed successfully (after a new
237 // renderer process was created); further calls to Init won't change this 241 // renderer process was created); further calls to Init won't change this
238 // value. 242 // value.
239 // Note: Do not use! Will disappear after PlzNavitate is completed. 243 // Note: Do not use! Will disappear after PlzNavitate is completed.
240 virtual const base::TimeTicks& GetInitTimeForNavigationMetrics() const = 0; 244 virtual const base::TimeTicks& GetInitTimeForNavigationMetrics() const = 0;
241 245
246 // Returns whether or not the CHROMIUM_subscribe_uniform WebGL extension
247 // is currently enabled
248 virtual bool SubscribeUniformEnabled() const = 0;
249
250 // Handlers for subscription target changes to update subscription_set_
251 virtual void OnAddSubscription(unsigned int target) = 0;
252 virtual void OnRemoveSubscription(unsigned int target) = 0;
253
254 // Send a new ValueState to the Gpu Service to update a subscription target
255 virtual void SendUpdateValueState(
256 unsigned int target, const gpu::ValueState& state) = 0;
257
242 // Static management functions ----------------------------------------------- 258 // Static management functions -----------------------------------------------
243 259
244 // Flag to run the renderer in process. This is primarily 260 // Flag to run the renderer in process. This is primarily
245 // for debugging purposes. When running "in process", the 261 // for debugging purposes. When running "in process", the
246 // browser maintains a single RenderProcessHost which communicates 262 // browser maintains a single RenderProcessHost which communicates
247 // to a RenderProcess which is instantiated in the same process 263 // to a RenderProcess which is instantiated in the same process
248 // with the Browser. All IPC between the Browser and the 264 // with the Browser. All IPC between the Browser and the
249 // Renderer is the same, it's just not crossing a process boundary. 265 // Renderer is the same, it's just not crossing a process boundary.
250 266
251 static bool run_renderer_in_process(); 267 static bool run_renderer_in_process();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 static void SetMaxRendererProcessCount(size_t count); 306 static void SetMaxRendererProcessCount(size_t count);
291 307
292 // Returns the current maximum number of renderer process hosts kept by the 308 // Returns the current maximum number of renderer process hosts kept by the
293 // content module. 309 // content module.
294 static size_t GetMaxRendererProcessCount(); 310 static size_t GetMaxRendererProcessCount();
295 }; 311 };
296 312
297 } // namespace content. 313 } // namespace content.
298 314
299 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 315 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698