Index: content/browser/renderer_host/render_widget_host_view_android.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc |
index fe64d9240c1ca08a6ab3fbb4bb6cd3e3cea82514..bfa357d59dc32dfdb8fedb174052cb2bd94a37ca 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_android.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc |
@@ -14,6 +14,7 @@ |
#include "base/message_loop/message_loop.h" |
#include "base/strings/utf_string_conversions.h" |
#include "base/threading/worker_pool.h" |
+#include "cc/base/latency_info_swap_promise.h" |
#include "cc/layers/delegated_frame_provider.h" |
#include "cc/layers/delegated_renderer_layer.h" |
#include "cc/layers/layer.h" |
@@ -779,8 +780,11 @@ void RenderWidgetHostViewAndroid::OnSwapCompositorFrame( |
texture_size_in_layer_ = frame->gl_frame_data->size; |
ComputeContentsSize(frame->metadata); |
- if (layer_->layer_tree_host()) |
- layer_->layer_tree_host()->SetLatencyInfo(frame->metadata.latency_info); |
+ if (layer_->layer_tree_host()) { |
+ scoped_ptr<cc::SwapPromise> swap_promise( |
+ new cc::LatencyInfoSwapPromise(frame->metadata.latency_info)); |
+ layer_->layer_tree_host()->QueueSwapPromise(swap_promise.Pass()); |
+ } |
BuffersSwapped(frame->gl_frame_data->mailbox, output_surface_id, callback); |
} |