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

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

Issue 1823763003: Move more files to gpu/ipc/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed GYP build Created 4 years, 9 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
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/gpu/gpu_surface_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.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
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
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
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/gpu/gpu_surface_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698