OLD | NEW |
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/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 } | 241 } |
242 | 242 |
243 void GpuProcessHostUIShim::OnLogMessage( | 243 void GpuProcessHostUIShim::OnLogMessage( |
244 int level, | 244 int level, |
245 const std::string& header, | 245 const std::string& header, |
246 const std::string& message) { | 246 const std::string& message) { |
247 GpuDataManagerImpl::GetInstance()->AddLogMessage( | 247 GpuDataManagerImpl::GetInstance()->AddLogMessage( |
248 level, header, message); | 248 level, header, message); |
249 } | 249 } |
250 | 250 |
251 void GpuProcessHostUIShim::OnGraphicsInfoCollected(const GPUInfo& gpu_info) { | 251 void GpuProcessHostUIShim::OnGraphicsInfoCollected( |
| 252 const gpu::GPUInfo& gpu_info) { |
252 // OnGraphicsInfoCollected is sent back after the GPU process successfully | 253 // OnGraphicsInfoCollected is sent back after the GPU process successfully |
253 // initializes GL. | 254 // initializes GL. |
254 TRACE_EVENT0("test_gpu", "OnGraphicsInfoCollected"); | 255 TRACE_EVENT0("test_gpu", "OnGraphicsInfoCollected"); |
255 | 256 |
256 GpuDataManagerImpl::GetInstance()->UpdateGpuInfo(gpu_info); | 257 GpuDataManagerImpl::GetInstance()->UpdateGpuInfo(gpu_info); |
257 } | 258 } |
258 | 259 |
259 #if defined(TOOLKIT_GTK) || defined(OS_WIN) | 260 #if defined(TOOLKIT_GTK) || defined(OS_WIN) |
260 | 261 |
261 void GpuProcessHostUIShim::OnResizeView(int32 surface_id, | 262 void GpuProcessHostUIShim::OnResizeView(int32 surface_id, |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 view->AcceleratedSurfaceRelease(); | 395 view->AcceleratedSurfaceRelease(); |
395 } | 396 } |
396 | 397 |
397 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived( | 398 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived( |
398 const GPUVideoMemoryUsageStats& video_memory_usage_stats) { | 399 const GPUVideoMemoryUsageStats& video_memory_usage_stats) { |
399 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats( | 400 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats( |
400 video_memory_usage_stats); | 401 video_memory_usage_stats); |
401 } | 402 } |
402 | 403 |
403 } // namespace content | 404 } // namespace content |
OLD | NEW |