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

Side by Side Diff: cc/base/swap_promise.h

Issue 60513007: Add SwapPromise support to LayerTreeHost and LayerTreeImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add comments for when to use QueueSwapPromise() 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/cc.gyp » ('j') | cc/trees/layer_tree_host.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_BASE_SWAP_PROMISE_H_
6 #define CC_BASE_SWAP_PROMISE_H_
7
8 #include <string>
9
10 #include "base/callback.h"
11 #include "base/callback_forward.h"
12
13 namespace cc {
14
15 struct SwapPromise {
16 SwapPromise(const base::Closure& did_swap_cb,
17 const base::Callback<void(const std::string&)>& swap_aborted_cb)
18 : did_swap_callback(did_swap_cb),
19 swap_aborted_callback(swap_aborted_cb) {}
20
21 ~SwapPromise() {}
22
23 base::Closure did_swap_callback;
24 base::Callback<void(const std::string&)> swap_aborted_callback;
jamesr 2013/11/12 03:15:04 why does this take a std::string? from this patch
Yufeng Shen (Slow to review) 2013/11/13 21:05:04 Done.
25 };
26
27 } // namespace cc
28
29 #endif // CC_BASE_SWAP_PROMISE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/cc.gyp » ('j') | cc/trees/layer_tree_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698