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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: cc/layers/append_quads_data.h
diff --git a/cc/layers/append_quads_data.h b/cc/layers/append_quads_data.h
index cf17b5b28c5d8ec6f860e51a9ddd724bb4e4cf25..ca72db5ddbd3e3353d366fe61cfc7c55fee766ea 100644
--- a/cc/layers/append_quads_data.h
+++ b/cc/layers/append_quads_data.h
@@ -6,11 +6,19 @@
#define CC_LAYERS_APPEND_QUADS_DATA_H_
#include <stdint.h>
+#include <vector>
+
+#include "cc/cc_export.h"
+#include "cc/surfaces/surface_id.h"
namespace cc {
// Set by the layer appending quads.
-struct AppendQuadsData {
+class CC_EXPORT AppendQuadsData {
+ public:
+ AppendQuadsData();
+ ~AppendQuadsData();
+
int64_t num_incomplete_tiles = 0;
int64_t num_missing_tiles = 0;
int64_t visible_layer_area = 0;
@@ -22,6 +30,8 @@ struct AppendQuadsData {
int64_t checkerboarded_no_recording_content_area = 0;
// This is the area within interest rect.
int64_t checkerboarded_needs_raster_content_area = 0;
+
+ 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.
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698