[email protected] | 0fb2500 | 2012-10-12 07:20:02 | [diff] [blame] | 1 | // Copyright 2012 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. | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 4 | |
[email protected] | cc3cfaa | 2013-03-18 09:05:52 | [diff] [blame] | 5 | #ifndef CC_LAYERS_APPEND_QUADS_DATA_H_ |
6 | #define CC_LAYERS_APPEND_QUADS_DATA_H_ | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 7 | |
avi | 02a4d17 | 2015-12-21 06:14:36 | [diff] [blame] | 8 | #include <stdint.h> |
fsamuel | a4f81d1f | 2017-04-07 18:32:38 | [diff] [blame] | 9 | #include <vector> |
10 | |||||
11 | #include "cc/cc_export.h" | ||||
Fady Samuel | 644df1d | 2017-07-13 01:13:02 | [diff] [blame] | 12 | #include "components/viz/common/surfaces/surface_id.h" |
avi | 02a4d17 | 2015-12-21 06:14:36 | [diff] [blame] | 13 | |
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 14 | namespace cc { |
15 | |||||
vollick | c9a27cb | 2016-01-07 20:16:32 | [diff] [blame] | 16 | // Set by the layer appending quads. |
fsamuel | a4f81d1f | 2017-04-07 18:32:38 | [diff] [blame] | 17 | class CC_EXPORT AppendQuadsData { |
18 | public: | ||||
19 | AppendQuadsData(); | ||||
20 | ~AppendQuadsData(); | ||||
21 | |||||
vollick | c9a27cb | 2016-01-07 20:16:32 | [diff] [blame] | 22 | int64_t num_incomplete_tiles = 0; |
23 | int64_t num_missing_tiles = 0; | ||||
24 | int64_t visible_layer_area = 0; | ||||
25 | int64_t approximated_visible_content_area = 0; | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 26 | |
vollick | c9a27cb | 2016-01-07 20:16:32 | [diff] [blame] | 27 | // This is total of the following two areas. |
28 | int64_t checkerboarded_visible_content_area = 0; | ||||
29 | // This is the area outside interest rect. | ||||
30 | int64_t checkerboarded_no_recording_content_area = 0; | ||||
31 | // This is the area within interest rect. | ||||
32 | int64_t checkerboarded_needs_raster_content_area = 0; | ||||
fsamuel | a8d297dd | 2017-05-05 16:11:57 | [diff] [blame] | 33 | // This is the set of surface IDs that must have corresponding |
34 | // active CompositorFrames so that this CompositorFrame can | ||||
35 | // activate. | ||||
Fady Samuel | d5c2618 | 2017-07-12 02:43:33 | [diff] [blame] | 36 | std::vector<viz::SurfaceId> activation_dependencies; |
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 37 | }; |
38 | |||||
[email protected] | bf691c2 | 2013-03-26 21:15:06 | [diff] [blame] | 39 | } // namespace cc |
[email protected] | cc3cfaa | 2013-03-18 09:05:52 | [diff] [blame] | 40 | #endif // CC_LAYERS_APPEND_QUADS_DATA_H_ |