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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_process_host.h
diff --git a/content/public/browser/render_process_host.h b/content/public/browser/render_process_host.h
index c61299511108a58252c06537681e242abd9e03f7..752903284dbee310123faa15d1a2b773d96f8772 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -22,6 +22,10 @@ namespace base {
class TimeDelta;
}
+namespace gpu {
+union ValueState;
+}
+
namespace content {
class BrowserContext;
class BrowserMessageFilter;
@@ -239,6 +243,18 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
// Note: Do not use! Will disappear after PlzNavitate is completed.
virtual const base::TimeTicks& GetInitTimeForNavigationMetrics() const = 0;
+ // Returns whether or not the CHROMIUM_subscribe_uniform WebGL extension
+ // is currently enabled
+ virtual bool SubscribeUniformEnabled() const = 0;
+
+ // Handlers for subscription target changes to update subscription_set_
+ virtual void OnAddSubscription(unsigned int target) = 0;
+ virtual void OnRemoveSubscription(unsigned int target) = 0;
+
+ // Send a new ValueState to the Gpu Service to update a subscription target
+ virtual void SendUpdateValueState(
+ unsigned int target, const gpu::ValueState& state) = 0;
+
// Static management functions -----------------------------------------------
// Flag to run the renderer in process. This is primarily
« 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