Index: content/renderer/gpu/render_widget_compositor.cc |
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc |
index 917aba7c55ca827d8b35becbfeb5275e4422366b..b0b44332c1a454334ff9c3dd45c9c55a3d3fe9ce 100644 |
--- a/content/renderer/gpu/render_widget_compositor.cc |
+++ b/content/renderer/gpu/render_widget_compositor.cc |
@@ -17,6 +17,7 @@ |
#include "base/synchronization/lock.h" |
#include "base/time/time.h" |
#include "base/values.h" |
+#include "cc/base/latency_info_swap_promise.h" |
#include "cc/base/switches.h" |
#include "cc/debug/layer_tree_debug_state.h" |
#include "cc/debug/micro_benchmark.h" |
@@ -391,7 +392,9 @@ void RenderWidgetCompositor::SetNeedsForcedRedraw() { |
void RenderWidgetCompositor::SetLatencyInfo( |
const ui::LatencyInfo& latency_info) { |
- layer_tree_host_->SetLatencyInfo(latency_info); |
+ scoped_ptr<cc::SwapPromise> swap_promise( |
+ new cc::LatencyInfoSwapPromise(latency_info)); |
+ layer_tree_host_->QueueSwapPromise(swap_promise.Pass()); |
} |
int RenderWidgetCompositor::GetLayerTreeId() const { |