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

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

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « cc/output/software_renderer.cc ('k') | cc/quads/yuv_video_draw_quad.h.rej » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_BASE_SWAP_PROMISE_H_ 5 #ifndef CC_OUTPUT_SWAP_PROMISE_H_
6 #define CC_BASE_SWAP_PROMISE_H_ 6 #define CC_OUTPUT_SWAP_PROMISE_H_
7 7
8 #include "cc/output/compositor_frame_metadata.h" 8 #include "cc/output/compositor_frame_metadata.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 // When a change to the compositor's state/invalidation/whatever happens, a 12 // When a change to the compositor's state/invalidation/whatever happens, a
13 // Swap Promise can be inserted into LayerTreeHost/LayerTreeImpl, to track 13 // Swap Promise can be inserted into LayerTreeHost/LayerTreeImpl, to track
14 // whether the compositor's reply to the new state/invaliadtion/whatever is 14 // whether the compositor's reply to the new state/invaliadtion/whatever is
15 // completed in the compositor, i.e. the compositor knows it has been sent 15 // completed in the compositor, i.e. the compositor knows it has been sent
16 // to its output or not. 16 // to its output or not.
(...skipping 26 matching lines...) Expand all
43 virtual void DidNotSwap(DidNotSwapReason reason) = 0; 43 virtual void DidNotSwap(DidNotSwapReason reason) = 0;
44 44
45 // A non-zero trace id identifies a trace flow object that is embedded in the 45 // A non-zero trace id identifies a trace flow object that is embedded in the
46 // swap promise. This can be used for registering additional flow steps to 46 // swap promise. This can be used for registering additional flow steps to
47 // visualize the object's path through the system. 47 // visualize the object's path through the system.
48 virtual int64 TraceId() const = 0; 48 virtual int64 TraceId() const = 0;
49 }; 49 };
50 50
51 } // namespace cc 51 } // namespace cc
52 52
53 #endif // CC_BASE_SWAP_PROMISE_H_ 53 #endif // CC_OUTPUT_SWAP_PROMISE_H_
OLDNEW
« no previous file with comments | « cc/output/software_renderer.cc ('k') | cc/quads/yuv_video_draw_quad.h.rej » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698