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

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

Issue 337303003: CARemoteLayer alive-ish (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('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 "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
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
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
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698