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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 81533002: Use LatencyInfoSwapPromise to track LatencyInfo through compositor (Closed) Base URL: http://git.chromium.org/chromium/src.git@swap_promise_2
Patch Set: fix typo Created 7 years, 1 month 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698