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

Unified Diff: cc/trees/threaded_channel.cc

Issue 2188093002: cc: Complete swap promise for aborted commit after pending activation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: post rebase fix Created 4 years, 4 months 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 | « cc/trees/threaded_channel.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/threaded_channel.cc
diff --git a/cc/trees/threaded_channel.cc b/cc/trees/threaded_channel.cc
index ab0fa28e333e98e468ead3f356681b68ddee2fdb..67902aea94fc26c38cc7e2fcb47b3cdd60a8e695 100644
--- a/cc/trees/threaded_channel.cc
+++ b/cc/trees/threaded_channel.cc
@@ -5,6 +5,7 @@
#include "cc/trees/threaded_channel.h"
#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/memory/ptr_util.h"
#include "base/single_thread_task_runner.h"
#include "base/trace_event/trace_event.h"
@@ -26,8 +27,7 @@ ThreadedChannel::ThreadedChannel(ProxyMain* proxy_main,
: task_runner_provider_(task_runner_provider),
main_thread_only_vars_unsafe_(proxy_main),
compositor_thread_vars_unsafe_(
- main()
- .proxy_main_weak_factory.GetWeakPtr()) {
+ main().proxy_main_weak_factory.GetWeakPtr()) {
DCHECK(IsMainThread());
}
@@ -93,12 +93,13 @@ void ThreadedChannel::SetNeedsCommitOnImpl() {
void ThreadedChannel::BeginMainFrameAbortedOnImpl(
CommitEarlyOutReason reason,
- base::TimeTicks main_thread_start_time) {
+ base::TimeTicks main_thread_start_time,
+ std::vector<std::unique_ptr<SwapPromise>> swap_promises) {
DCHECK(IsMainThread());
ImplThreadTaskRunner()->PostTask(
FROM_HERE,
base::Bind(&ProxyImpl::BeginMainFrameAbortedOnImpl, proxy_impl_weak_ptr_,
- reason, main_thread_start_time));
+ reason, main_thread_start_time, base::Passed(&swap_promises)));
}
void ThreadedChannel::SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) {
« no previous file with comments | « cc/trees/threaded_channel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698