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

Side by Side Diff: cc/layers/append_quads_data.h

Issue 2803913004: cc: Introduce embedded_surfaces in metadata for surface Ids in draw quads (Closed)
Patch Set: Fix unit test Created 3 years, 8 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
OLDNEW
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
34 std::vector<SurfaceId> embedded_surfaces;
danakj 2017/04/07 16:41:17 Comment explaining what this is so layer authors c
Fady Samuel 2017/04/07 17:16:26 Done.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698