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

Unified Diff: content/common/gpu/client/command_buffer_proxy_impl.cc

Issue 123563002: Remove gpu side LatencyInfo merging (Closed) Base URL: http://git.chromium.org/chromium/src.git@gpu-per-event-latency-6-small
Patch Set: fix mac_rel compiler error. Move kMaxLatencyInfoNumber to .cc file Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/client/command_buffer_proxy_impl.cc
diff --git a/content/common/gpu/client/command_buffer_proxy_impl.cc b/content/common/gpu/client/command_buffer_proxy_impl.cc
index 70e070f1a4984387ed056944586c0329006c59b1..0d31a9150a06a85e82a09585088b935ece9f6d31 100644
--- a/content/common/gpu/client/command_buffer_proxy_impl.cc
+++ b/content/common/gpu/client/command_buffer_proxy_impl.cc
@@ -215,13 +215,7 @@ void CommandBufferProxyImpl::SetLatencyInfo(
const std::vector<ui::LatencyInfo>& latency_info) {
if (last_state_.error != gpu::error::kNoError)
return;
- // TODO(miletus) : Pass the std::vector<ui::LatencyInfo> latency_info
- // directly without merging once GpuCommandBufferMsg_SetLatencyInfo
- // is converted to contain std::vector<ui::LatencyInfo>.
- ui::LatencyInfo merged_latency;
- for (size_t i = 0; i < latency_info.size(); i++)
- merged_latency.MergeWith(latency_info[i]);
- Send(new GpuCommandBufferMsg_SetLatencyInfo(route_id_, merged_latency));
+ Send(new GpuCommandBufferMsg_SetLatencyInfo(route_id_, latency_info));
}
gpu::CommandBuffer::State CommandBufferProxyImpl::FlushSync(
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698