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 "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 return; | 885 return; |
886 } | 886 } |
887 | 887 |
888 // Pass the SwapBuffers on to the RenderWidgetHelper to wake up the UI thread | 888 // Pass the SwapBuffers on to the RenderWidgetHelper to wake up the UI thread |
889 // if the browser is waiting for a new frame. Otherwise the RenderWidgetHelper | 889 // if the browser is waiting for a new frame. Otherwise the RenderWidgetHelper |
890 // will forward to the RenderWidgetHostView via RenderProcessHostImpl and | 890 // will forward to the RenderWidgetHostView via RenderProcessHostImpl and |
891 // RenderWidgetHostImpl. | 891 // RenderWidgetHostImpl. |
892 ViewHostMsg_CompositorSurfaceBuffersSwapped_Params view_params; | 892 ViewHostMsg_CompositorSurfaceBuffersSwapped_Params view_params; |
893 view_params.surface_id = params.surface_id; | 893 view_params.surface_id = params.surface_id; |
894 view_params.surface_handle = params.surface_handle; | 894 view_params.surface_handle = params.surface_handle; |
| 895 view_params.ca_context_id = params.ca_context_id; |
895 view_params.route_id = params.route_id; | 896 view_params.route_id = params.route_id; |
896 view_params.size = params.size; | 897 view_params.size = params.size; |
897 view_params.scale_factor = params.scale_factor; | 898 view_params.scale_factor = params.scale_factor; |
898 view_params.gpu_process_host_id = host_id_; | 899 view_params.gpu_process_host_id = host_id_; |
899 view_params.latency_info = params.latency_info; | 900 view_params.latency_info = params.latency_info; |
900 helper->DidReceiveBackingStoreMsg(ViewHostMsg_CompositorSurfaceBuffersSwapped( | 901 helper->DidReceiveBackingStoreMsg(ViewHostMsg_CompositorSurfaceBuffersSwapped( |
901 render_widget_id, | 902 render_widget_id, |
902 view_params)); | 903 view_params)); |
903 } | 904 } |
904 #endif // OS_MACOSX | 905 #endif // OS_MACOSX |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1113 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1113 ClientIdToShaderCacheMap::iterator iter = | 1114 ClientIdToShaderCacheMap::iterator iter = |
1114 client_id_to_shader_cache_.find(client_id); | 1115 client_id_to_shader_cache_.find(client_id); |
1115 // If the cache doesn't exist then this is an off the record profile. | 1116 // If the cache doesn't exist then this is an off the record profile. |
1116 if (iter == client_id_to_shader_cache_.end()) | 1117 if (iter == client_id_to_shader_cache_.end()) |
1117 return; | 1118 return; |
1118 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1119 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1119 } | 1120 } |
1120 | 1121 |
1121 } // namespace content | 1122 } // namespace content |
OLD | NEW |