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

Unified Diff: trunk/src/ui/compositor/compositor.cc

Issue 96363002: Revert 237857 "Revert 237848 "Use LatencyInfoSwapPromise to trac..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | « trunk/src/content/renderer/gpu/render_widget_compositor.cc ('k') | trunk/src/ui/events/latency_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/compositor/compositor.cc
===================================================================
--- trunk/src/ui/compositor/compositor.cc (revision 237886)
+++ trunk/src/ui/compositor/compositor.cc (working copy)
@@ -17,6 +17,7 @@
#include "base/sys_info.h"
#include "base/threading/thread.h"
#include "base/threading/thread_restrictions.h"
+#include "cc/base/latency_info_swap_promise.h"
#include "cc/base/switches.h"
#include "cc/input/input_handler.h"
#include "cc/layers/layer.h"
@@ -437,7 +438,9 @@
}
void Compositor::SetLatencyInfo(const ui::LatencyInfo& latency_info) {
- host_->SetLatencyInfo(latency_info);
+ scoped_ptr<cc::SwapPromise> swap_promise(
+ new cc::LatencyInfoSwapPromise(latency_info));
+ host_->QueueSwapPromise(swap_promise.Pass());
}
bool Compositor::ReadPixels(SkBitmap* bitmap,
« no previous file with comments | « trunk/src/content/renderer/gpu/render_widget_compositor.cc ('k') | trunk/src/ui/events/latency_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698