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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

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
Index: content/browser/gpu/gpu_process_host_ui_shim.cc
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index 2293e745892609f8391e4d01e628cbc4bfc83abb..3b9c8968c6c168032986796bf7923165b63b61f4 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -230,6 +230,8 @@ bool GpuProcessHostUIShim::OnControlMessageReceived(
OnVideoMemoryUsageStatsReceived);
IPC_MESSAGE_HANDLER(GpuHostMsg_ResourcesRelinquished,
OnResourcesRelinquished)
+ IPC_MESSAGE_HANDLER(GpuHostMsg_AddSubscription, OnAddSubscription);
+ IPC_MESSAGE_HANDLER(GpuHostMsg_RemoveSubscription, OnRemoveSubscription);
IPC_MESSAGE_UNHANDLED_ERROR()
IPC_END_MESSAGE_MAP()
@@ -306,4 +308,20 @@ void GpuProcessHostUIShim::OnResourcesRelinquished() {
}
}
+void GpuProcessHostUIShim::OnAddSubscription(
+ int32 process_id, unsigned int target) {
+ RenderProcessHost* rph = RenderProcessHost::FromID(process_id);
+ if (rph) {
+ rph->OnAddSubscription(target);
+ }
+}
+
+void GpuProcessHostUIShim::OnRemoveSubscription(
+ int32 process_id, unsigned int target) {
+ RenderProcessHost* rph = RenderProcessHost::FromID(process_id);
+ if (rph) {
+ rph->OnRemoveSubscription(target);
+ }
+}
+
} // namespace content
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.h ('k') | content/browser/renderer_host/render_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698