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

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

Issue 628703005: Remove GpuHostMsg_FrameDrawn and replace with client channel swap ack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, fix cros/threaded Created 6 years, 2 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
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_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/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 IPC_MESSAGE_HANDLER(GpuHostMsg_OnLogMessage, 205 IPC_MESSAGE_HANDLER(GpuHostMsg_OnLogMessage,
206 OnLogMessage) 206 OnLogMessage)
207 IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceInitialized, 207 IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceInitialized,
208 OnAcceleratedSurfaceInitialized) 208 OnAcceleratedSurfaceInitialized)
209 IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, 209 IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
210 OnAcceleratedSurfaceBuffersSwapped) 210 OnAcceleratedSurfaceBuffersSwapped)
211 IPC_MESSAGE_HANDLER(GpuHostMsg_GraphicsInfoCollected, 211 IPC_MESSAGE_HANDLER(GpuHostMsg_GraphicsInfoCollected,
212 OnGraphicsInfoCollected) 212 OnGraphicsInfoCollected)
213 IPC_MESSAGE_HANDLER(GpuHostMsg_VideoMemoryUsageStats, 213 IPC_MESSAGE_HANDLER(GpuHostMsg_VideoMemoryUsageStats,
214 OnVideoMemoryUsageStatsReceived); 214 OnVideoMemoryUsageStatsReceived);
215 IPC_MESSAGE_HANDLER(GpuHostMsg_FrameDrawn, OnFrameDrawn)
216 215
217 IPC_MESSAGE_UNHANDLED_ERROR() 216 IPC_MESSAGE_UNHANDLED_ERROR()
218 IPC_END_MESSAGE_MAP() 217 IPC_END_MESSAGE_MAP()
219 218
220 return true; 219 return true;
221 } 220 }
222 221
223 void GpuProcessHostUIShim::OnLogMessage( 222 void GpuProcessHostUIShim::OnLogMessage(
224 int level, 223 int level,
225 const std::string& header, 224 const std::string& header,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 params.latency_info, 266 params.latency_info,
268 params.size, 267 params.size,
269 params.scale_factor, 268 params.scale_factor,
270 host_id_, 269 host_id_,
271 params.route_id); 270 params.route_id);
272 #else 271 #else
273 NOTREACHED(); 272 NOTREACHED();
274 #endif 273 #endif
275 } 274 }
276 275
277 void GpuProcessHostUIShim::OnFrameDrawn(
278 const std::vector<ui::LatencyInfo>& latency_info) {
279 if (!ui::LatencyInfo::Verify(latency_info,
280 "GpuProcessHostUIShim::OnFrameDrawn"))
281 return;
282 RenderWidgetHostImpl::CompositorFrameDrawn(latency_info);
283 }
284
285 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived( 276 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived(
286 const GPUVideoMemoryUsageStats& video_memory_usage_stats) { 277 const GPUVideoMemoryUsageStats& video_memory_usage_stats) {
287 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats( 278 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats(
288 video_memory_usage_stats); 279 video_memory_usage_stats);
289 } 280 }
290 281
291 } // namespace content 282 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.h ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698