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

Side by Side Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

Issue 1894313002: Removed implementation of CHROMIUM_subscribe_uniform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a couple more mus/ references Created 4 years, 8 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
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 #include "content/browser/gpu/gpu_process_host_ui_shim.h" 5 #include "content/browser/gpu/gpu_process_host_ui_shim.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 IPC_BEGIN_MESSAGE_MAP(GpuProcessHostUIShim, message) 189 IPC_BEGIN_MESSAGE_MAP(GpuProcessHostUIShim, message)
190 IPC_MESSAGE_HANDLER(GpuHostMsg_OnLogMessage, OnLogMessage) 190 IPC_MESSAGE_HANDLER(GpuHostMsg_OnLogMessage, OnLogMessage)
191 #if defined(OS_MACOSX) 191 #if defined(OS_MACOSX)
192 IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, 192 IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
193 OnAcceleratedSurfaceBuffersSwapped) 193 OnAcceleratedSurfaceBuffersSwapped)
194 #endif 194 #endif
195 IPC_MESSAGE_HANDLER(GpuHostMsg_GraphicsInfoCollected, 195 IPC_MESSAGE_HANDLER(GpuHostMsg_GraphicsInfoCollected,
196 OnGraphicsInfoCollected) 196 OnGraphicsInfoCollected)
197 IPC_MESSAGE_HANDLER(GpuHostMsg_VideoMemoryUsageStats, 197 IPC_MESSAGE_HANDLER(GpuHostMsg_VideoMemoryUsageStats,
198 OnVideoMemoryUsageStatsReceived); 198 OnVideoMemoryUsageStatsReceived);
199 IPC_MESSAGE_HANDLER(GpuHostMsg_AddSubscription, OnAddSubscription);
200 IPC_MESSAGE_HANDLER(GpuHostMsg_RemoveSubscription, OnRemoveSubscription);
201 199
202 IPC_MESSAGE_UNHANDLED_ERROR() 200 IPC_MESSAGE_UNHANDLED_ERROR()
203 IPC_END_MESSAGE_MAP() 201 IPC_END_MESSAGE_MAP()
204 202
205 return true; 203 return true;
206 } 204 }
207 205
208 void GpuProcessHostUIShim::OnLogMessage( 206 void GpuProcessHostUIShim::OnLogMessage(
209 int level, 207 int level,
210 const std::string& header, 208 const std::string& header,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 Send(new AcceleratedSurfaceMsg_BufferPresented(ack_params)); 269 Send(new AcceleratedSurfaceMsg_BufferPresented(ack_params));
272 } 270 }
273 #endif 271 #endif
274 272
275 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived( 273 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived(
276 const gpu::VideoMemoryUsageStats& video_memory_usage_stats) { 274 const gpu::VideoMemoryUsageStats& video_memory_usage_stats) {
277 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats( 275 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats(
278 video_memory_usage_stats); 276 video_memory_usage_stats);
279 } 277 }
280 278
281 void GpuProcessHostUIShim::OnAddSubscription(int32_t process_id,
282 unsigned int target) {
283 RenderProcessHost* rph = RenderProcessHost::FromID(process_id);
284 if (rph) {
285 rph->OnAddSubscription(target);
286 }
287 }
288
289 void GpuProcessHostUIShim::OnRemoveSubscription(int32_t process_id,
290 unsigned int target) {
291 RenderProcessHost* rph = RenderProcessHost::FromID(process_id);
292 if (rph) {
293 rph->OnRemoveSubscription(target);
294 }
295 }
296
297 } // namespace content 279 } // namespace content
OLDNEW
« 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