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

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

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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"
11 #include "base/id_map.h" 11 #include "base/id_map.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "base/trace_event/trace_event.h" 14 #include "base/trace_event/trace_event.h"
15 #include "build/build_config.h"
15 #include "content/browser/compositor/gpu_process_transport_factory.h" 16 #include "content/browser/compositor/gpu_process_transport_factory.h"
16 #include "content/browser/gpu/compositor_util.h" 17 #include "content/browser/gpu/compositor_util.h"
17 #include "content/browser/gpu/gpu_data_manager_impl.h" 18 #include "content/browser/gpu/gpu_data_manager_impl.h"
18 #include "content/browser/gpu/gpu_process_host.h" 19 #include "content/browser/gpu/gpu_process_host.h"
19 #include "content/browser/gpu/gpu_surface_tracker.h" 20 #include "content/browser/gpu/gpu_surface_tracker.h"
20 #include "content/browser/renderer_host/render_process_host_impl.h" 21 #include "content/browser/renderer_host/render_process_host_impl.h"
21 #include "content/browser/renderer_host/render_view_host_impl.h" 22 #include "content/browser/renderer_host/render_view_host_impl.h"
22 #include "content/browser/renderer_host/render_widget_helper.h" 23 #include "content/browser/renderer_host/render_widget_helper.h"
23 #include "content/browser/renderer_host/render_widget_host_view_base.h" 24 #include "content/browser/renderer_host/render_widget_host_view_base.h"
24 #include "content/common/gpu/gpu_messages.h" 25 #include "content/common/gpu/gpu_messages.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 Send(new AcceleratedSurfaceMsg_BufferPresented(params.route_id, ack_params)); 278 Send(new AcceleratedSurfaceMsg_BufferPresented(params.route_id, ack_params));
278 } 279 }
279 #endif 280 #endif
280 281
281 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived( 282 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived(
282 const GPUVideoMemoryUsageStats& video_memory_usage_stats) { 283 const GPUVideoMemoryUsageStats& video_memory_usage_stats) {
283 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats( 284 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats(
284 video_memory_usage_stats); 285 video_memory_usage_stats);
285 } 286 }
286 287
287 void GpuProcessHostUIShim::OnAddSubscription( 288 void GpuProcessHostUIShim::OnAddSubscription(int32_t process_id,
288 int32 process_id, unsigned int target) { 289 unsigned int target) {
289 RenderProcessHost* rph = RenderProcessHost::FromID(process_id); 290 RenderProcessHost* rph = RenderProcessHost::FromID(process_id);
290 if (rph) { 291 if (rph) {
291 rph->OnAddSubscription(target); 292 rph->OnAddSubscription(target);
292 } 293 }
293 } 294 }
294 295
295 void GpuProcessHostUIShim::OnRemoveSubscription( 296 void GpuProcessHostUIShim::OnRemoveSubscription(int32_t process_id,
296 int32 process_id, unsigned int target) { 297 unsigned int target) {
297 RenderProcessHost* rph = RenderProcessHost::FromID(process_id); 298 RenderProcessHost* rph = RenderProcessHost::FromID(process_id);
298 if (rph) { 299 if (rph) {
299 rph->OnRemoveSubscription(target); 300 rph->OnRemoveSubscription(target);
300 } 301 }
301 } 302 }
302 303
303 } // namespace content 304 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.h ('k') | content/browser/gpu/gpu_surface_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698