OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 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_LAYERS_APPEND_QUADS_DATA_H_ | 5 #ifndef CC_LAYERS_APPEND_QUADS_DATA_H_ |
6 #define CC_LAYERS_APPEND_QUADS_DATA_H_ | 6 #define CC_LAYERS_APPEND_QUADS_DATA_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> |
| 10 |
| 11 #include "cc/cc_export.h" |
| 12 #include "cc/surfaces/surface_id.h" |
9 | 13 |
10 namespace cc { | 14 namespace cc { |
11 | 15 |
12 // Set by the layer appending quads. | 16 // Set by the layer appending quads. |
13 struct AppendQuadsData { | 17 class CC_EXPORT AppendQuadsData { |
| 18 public: |
| 19 AppendQuadsData(); |
| 20 ~AppendQuadsData(); |
| 21 |
14 int64_t num_incomplete_tiles = 0; | 22 int64_t num_incomplete_tiles = 0; |
15 int64_t num_missing_tiles = 0; | 23 int64_t num_missing_tiles = 0; |
16 int64_t visible_layer_area = 0; | 24 int64_t visible_layer_area = 0; |
17 int64_t approximated_visible_content_area = 0; | 25 int64_t approximated_visible_content_area = 0; |
18 | 26 |
19 // This is total of the following two areas. | 27 // This is total of the following two areas. |
20 int64_t checkerboarded_visible_content_area = 0; | 28 int64_t checkerboarded_visible_content_area = 0; |
21 // This is the area outside interest rect. | 29 // This is the area outside interest rect. |
22 int64_t checkerboarded_no_recording_content_area = 0; | 30 int64_t checkerboarded_no_recording_content_area = 0; |
23 // This is the area within interest rect. | 31 // This is the area within interest rect. |
24 int64_t checkerboarded_needs_raster_content_area = 0; | 32 int64_t checkerboarded_needs_raster_content_area = 0; |
| 33 // This is the set of surface IDs embedded in SurfaceDrawQuads. |
| 34 std::vector<SurfaceId> embedded_surfaces; |
25 }; | 35 }; |
26 | 36 |
27 } // namespace cc | 37 } // namespace cc |
28 #endif // CC_LAYERS_APPEND_QUADS_DATA_H_ | 38 #endif // CC_LAYERS_APPEND_QUADS_DATA_H_ |
OLD | NEW |