Index: trunk/src/content/renderer/gpu/render_widget_compositor.cc |
=================================================================== |
--- trunk/src/content/renderer/gpu/render_widget_compositor.cc (revision 237886) |
+++ trunk/src/content/renderer/gpu/render_widget_compositor.cc (working copy) |
@@ -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::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 { |