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

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

Issue 15842013: Plumb LatencyInfo through aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/image_transport_factory.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_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/command_line.h" 10 #include "base/command_line.h"
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 static const base::TimeDelta swap_delay = GetSwapDelay(); 338 static const base::TimeDelta swap_delay = GetSwapDelay();
339 if (swap_delay.ToInternalValue()) 339 if (swap_delay.ToInternalValue())
340 base::PlatformThread::Sleep(swap_delay); 340 base::PlatformThread::Sleep(swap_delay);
341 341
342 // View must send ACK message after next composite. 342 // View must send ACK message after next composite.
343 view->AcceleratedSurfaceBuffersSwapped(params, host_id_); 343 view->AcceleratedSurfaceBuffersSwapped(params, host_id_);
344 } 344 }
345 345
346 void GpuProcessHostUIShim::OnFrameDrawn(const ui::LatencyInfo& latency_info) { 346 void GpuProcessHostUIShim::OnFrameDrawn(const ui::LatencyInfo& latency_info) {
347 RenderWidgetHostImpl::CompositorFrameDrawn(latency_info);
347 } 348 }
348 349
349 void GpuProcessHostUIShim::OnAcceleratedSurfacePostSubBuffer( 350 void GpuProcessHostUIShim::OnAcceleratedSurfacePostSubBuffer(
350 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params) { 351 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params) {
351 TRACE_EVENT0("renderer", 352 TRACE_EVENT0("renderer",
352 "GpuProcessHostUIShim::OnAcceleratedSurfacePostSubBuffer"); 353 "GpuProcessHostUIShim::OnAcceleratedSurfacePostSubBuffer");
353 354
354 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 355 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
355 ack_params.mailbox_name = params.mailbox_name; 356 ack_params.mailbox_name = params.mailbox_name;
356 ack_params.sync_point = 0; 357 ack_params.sync_point = 0;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 view->AcceleratedSurfaceRelease(); 396 view->AcceleratedSurfaceRelease();
396 } 397 }
397 398
398 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived( 399 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived(
399 const GPUVideoMemoryUsageStats& video_memory_usage_stats) { 400 const GPUVideoMemoryUsageStats& video_memory_usage_stats) {
400 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats( 401 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats(
401 video_memory_usage_stats); 402 video_memory_usage_stats);
402 } 403 }
403 404
404 } // namespace content 405 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/image_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698