| 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.h" | 5 #include "content/browser/gpu/gpu_process_host.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 } | 880 } |
| 881 | 881 |
| 882 GpuDataManagerImpl::GetInstance()->BlockDomainFrom3DAPIs(url, guilt); | 882 GpuDataManagerImpl::GetInstance()->BlockDomainFrom3DAPIs(url, guilt); |
| 883 } | 883 } |
| 884 | 884 |
| 885 void GpuProcessHost::OnDidDestroyOffscreenContext(const GURL& url) { | 885 void GpuProcessHost::OnDidDestroyOffscreenContext(const GURL& url) { |
| 886 urls_with_live_offscreen_contexts_.erase(url); | 886 urls_with_live_offscreen_contexts_.erase(url); |
| 887 } | 887 } |
| 888 | 888 |
| 889 void GpuProcessHost::OnGpuMemoryUmaStatsReceived( | 889 void GpuProcessHost::OnGpuMemoryUmaStatsReceived( |
| 890 const GPUMemoryUmaStats& stats) { | 890 const gpu::GPUMemoryUmaStats& stats) { |
| 891 TRACE_EVENT0("gpu", "GpuProcessHost::OnGpuMemoryUmaStatsReceived"); | 891 TRACE_EVENT0("gpu", "GpuProcessHost::OnGpuMemoryUmaStatsReceived"); |
| 892 uma_memory_stats_received_ = true; | 892 uma_memory_stats_received_ = true; |
| 893 uma_memory_stats_ = stats; | 893 uma_memory_stats_ = stats; |
| 894 } | 894 } |
| 895 | 895 |
| 896 #if defined(OS_MACOSX) | 896 #if defined(OS_MACOSX) |
| 897 void GpuProcessHost::OnAcceleratedSurfaceBuffersSwapped( | 897 void GpuProcessHost::OnAcceleratedSurfaceBuffersSwapped( |
| 898 const IPC::Message& message) { | 898 const IPC::Message& message) { |
| 899 RenderWidgetResizeHelper::PostGpuProcessMsg(host_id_, message); | 899 RenderWidgetResizeHelper::PostGpuProcessMsg(host_id_, message); |
| 900 } | 900 } |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1164 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1164 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1165 ClientIdToShaderCacheMap::iterator iter = | 1165 ClientIdToShaderCacheMap::iterator iter = |
| 1166 client_id_to_shader_cache_.find(client_id); | 1166 client_id_to_shader_cache_.find(client_id); |
| 1167 // If the cache doesn't exist then this is an off the record profile. | 1167 // If the cache doesn't exist then this is an off the record profile. |
| 1168 if (iter == client_id_to_shader_cache_.end()) | 1168 if (iter == client_id_to_shader_cache_.end()) |
| 1169 return; | 1169 return; |
| 1170 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1170 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1171 } | 1171 } |
| 1172 | 1172 |
| 1173 } // namespace content | 1173 } // namespace content |
| OLD | NEW |