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

Unified Diff: cc/ipc/quads.mojom

Issue 2174843003: cc mojo: Use ArrayDataViews in RenderPasses (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix RenderPassId Created 4 years, 5 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
« no previous file with comments | « no previous file | cc/ipc/quads.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/quads.mojom
diff --git a/cc/ipc/quads.mojom b/cc/ipc/quads.mojom
index 39c1b282d7c1251e40b5c15a9ad73a614f26bb2f..d2afb704cbbfde3929ca939519bf8ff24bd0a469 100644
--- a/cc/ipc/quads.mojom
+++ b/cc/ipc/quads.mojom
@@ -6,6 +6,7 @@ module cc.mojom;
import "cc/ipc/filter_operations.mojom";
import "cc/ipc/render_pass_id.mojom";
+import "cc/ipc/shared_quad_state.mojom";
import "cc/ipc/surface_id.mojom";
import "ui/gfx/geometry/mojo/geometry.mojom";
import "ui/gfx/mojo/transform.mojom";
@@ -127,13 +128,9 @@ struct DrawQuad {
// should be clipped to |rect|. This rect lives in content space.
bool needs_blending;
- // Index into the containing pass' shared quad state array which has state
- // (transforms etc) shared by multiple quads.
- // TODO(fsamuel): This is not currently used because we store the
- // indicies to SharedQuadStates in a separate array. This is more expensive
- // than storing them inline here, but we need support for context propagation
- // in Mojo StructTraits in order to store the sqs index here.
- //uint32 shared_quad_state_index;
+ // Optionally holds a SharedQuadState (transforms etc) shared by multiple
+ // quads.
+ SharedQuadState? sqs;
// Only one of the following will be set, depending on the material.
DebugBorderQuadState? debug_border_quad_state;
@@ -145,9 +142,3 @@ struct DrawQuad {
StreamVideoQuadState? stream_video_quad_state;
YUVVideoQuadState? yuv_video_quad_state;
};
-
-struct QuadList {
- array<Material> quad_types;
- array<DrawQuad> quads;
-};
-
« no previous file with comments | « no previous file | cc/ipc/quads.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698