Home | History | Annotate | Download | only in surfaces

Lines Matching refs:Quad

142   test::Quad quads[] = {test::Quad::SolidColorQuad(SK_ColorRED),
143 test::Quad::SolidColorQuad(SK_ColorBLUE)};
153 test::Quad quads[][2] = {{test::Quad::SolidColorQuad(SK_ColorWHITE),
154 test::Quad::SolidColorQuad(SK_ColorLTGRAY)},
155 {test::Quad::SolidColorQuad(SK_ColorGRAY),
156 test::Quad::SolidColorQuad(SK_ColorDKGRAY)}};
167 // solid color quads and a surface quad referencing embedded_surface.
168 // embedded_surface has a frame containing only a solid color quad. The solid
169 // color quad should be aggregated into the final frame.
174 test::Quad embedded_quads[] = {test::Quad::SolidColorQuad(SK_ColorGREEN)};
180 test::Quad root_quads[] = {test::Quad::SolidColorQuad(SK_ColorWHITE),
181 test::Quad::SurfaceQuad(embedded_surface_id),
182 test::Quad::SolidColorQuad(SK_ColorBLACK)};
187 test::Quad expected_quads[] = {test::Quad::SolidColorQuad(SK_ColorWHITE),
188 test::Quad::SolidColorQuad(SK_ColorGREEN),
189 test::Quad::SolidColorQuad(SK_ColorBLACK)};
203 test::Quad embedded_quads[] = {test::Quad::SolidColorQuad(SK_ColorGREEN)};
213 test::Quad root_quads[] = {test::Quad::SolidColorQuad(SK_ColorWHITE),
214 test::Quad::SurfaceQuad(embedded_surface_id),
215 test::Quad::SolidColorQuad(SK_ColorBLACK)};
228 test::Quad expected_quads[] = {
229 test::Quad::SolidColorQuad(SK_ColorWHITE),
230 test::Quad::RenderPassQuad(frame_data->render_pass_list[0]->id),
231 test::Quad::SolidColorQuad(SK_ColorBLACK)};
263 test::Quad embedded_quads[][2] = {
264 {test::Quad::SolidColorQuad(1), test::Quad::SolidColorQuad(2)},
265 {test::Quad::SolidColorQuad(3), test::Quad::RenderPassQuad(pass_ids[0])},
266 {test::Quad::SolidColorQuad(4), test::Quad::RenderPassQuad(pass_ids[1])}};
274 test::Quad root_quads[][2] = {
275 {test::Quad::SolidColorQuad(5), test::Quad::SolidColorQuad(6)},
276 {test::Quad::SurfaceQuad(embedded_surface_id),
277 test::Quad::RenderPassQuad(pass_ids[0])},
278 {test::Quad::SolidColorQuad(7), test::Quad::RenderPassQuad(pass_ids[1])}};
309 // The first pass will just be the first pass from the root surfaces quad
318 // quad embedded into the root surface's second pass.
331 // This render pass pass quad will reference the first pass from the
348 // The first quad will be the yellow quad from the embedded surface's last
353 // The next quad will be a render pass quad referencing the second pass from
362 // The last quad will be a render pass quad referencing the first pass from
380 // The last quad in the last pass will reference the second pass from the
393 // Tests an invalid surface reference in a frame. The surface quad should just
396 test::Quad quads[] = {test::Quad::SolidColorQuad(SK_ColorGREEN),
397 test::Quad::SurfaceQuad(InvalidSurfaceId()),
398 test::Quad::SolidColorQuad(SK_ColorBLUE)};
403 test::Quad expected_quads[] = {test::Quad::SolidColorQuad(SK_ColorGREEN),
404 test::Quad::SolidColorQuad(SK_ColorBLUE)};
412 // Tests a reference to a valid surface with no submitted frame. This quad
417 test::Quad quads[] = {test::Quad::SolidColorQuad(SK_ColorGREEN),
418 test::Quad::SurfaceQuad(surface_with_no_frame_id),
419 test::Quad::SolidColorQuad(SK_ColorBLUE)};
424 test::Quad expected_quads[] = {test::Quad::SolidColorQuad(SK_ColorGREEN),
425 test::Quad::SolidColorQuad(SK_ColorBLUE)};
434 // Tests a surface quad referencing itself, generating a trivial cycle.
435 // The quad creating the cycle should be dropped from the final frame.
437 test::Quad quads[] = {test::Quad::SurfaceQuad(root_surface_id_),
438 test::Quad::SolidColorQuad(SK_ColorYELLOW)};
443 test::Quad expected_quads[] = {test::Quad::SolidColorQuad(SK_ColorYELLOW)};
456 test::Quad parent_quads[] = {test::Quad::SolidColorQuad(SK_ColorBLUE),
457 test::Quad::SurfaceQuad(child_surface_id),
458 test::Quad::SolidColorQuad(SK_ColorCYAN)};
464 test::Quad child_quads[] = {test::Quad::SolidColorQuad(SK_ColorGREEN),
465 test::Quad::SurfaceQuad(root_surface_id_),
466 test::Quad::SolidColorQuad(SK_ColorMAGENTA)};
477 test::Quad expected_quads[] = {test::Quad::SolidColorQuad(SK_ColorBLUE),
478 test::Quad::SolidColorQuad(SK_ColorGREEN),
479 test::Quad::SolidColorQuad(SK_ColorMAGENTA),
480 test::Quad::SolidColorQuad(SK_ColorCYAN)};
496 test::Quad child_quad[][1] = {{test::Quad::SolidColorQuad(SK_ColorGREEN)},
497 {test::Quad::RenderPassQuad(child_pass_id[0])}};
506 test::Quad parent_quad[][1] = {
507 {test::Quad::SurfaceQuad(child_surface_id)},
508 {test::Quad::RenderPassQuad(parent_pass_id[0])}};
582 // This tests that we update shared quad state pointers correctly within
583 // aggregated passes. The shared quad state list on the aggregated pass will
584 // include the shared quad states from each pass in one list so the quads will
585 // end up pointed to shared quad state objects at different offsets. This test
586 // uses the blend_mode value stored on the shared quad state to track the shared
587 // quad state, but anything saved on the shared quad state would work.
590 // root_surface -> quad with kClear_Mode,
592 // quad with kDstOver_Mode,
594 // quad with kDstIn_Mode
595 // child_one_surface -> quad with kSrc_Mode,
597 // quad with kSrcOver_Mode
598 // child_two_surface -> quad with kSrcIn_Mode
599 // grandchild_surface -> quad with kDst_Mode
717 // The root surface has one pass with a surface quad transformed by +10 in the y
720 // The child surface has two passes. The first pass has a quad with a transform
724 // After aggregation, the child surface's root pass quad should have both
732 test::Quad child_quads[][1] = {
733 {test::Quad::SolidColorQuad(SK_ColorGREEN)},
734 {test::Quad::RenderPassQuad(child_pass_id[0])}};
766 test::Quad root_quads[] = {test::Quad::SolidColorQuad(1),
767 test::Quad::SurfaceQuad(child_surface_id)};
805 // The first pass should have one shared quad state for the one solid color
806 // quad.
808 // The second (root) pass should have just two shared quad states. We'll
832 // The first quad in the root pass is the solid color quad from the original
836 // The second quad in the root pass is aggregated from the child surface so
838 // and the child surface draw quad's translation (8, 0).
854 // The second quad in the root pass is aggregated from the child, so its
868 test::Quad child_quads[] = {test::Quad::RenderPassQuad(child_pass_id)};
891 test::Quad root_quads[] = {test::Quad::SurfaceQuad(child_surface_id)};
1093 TextureDrawQuad* quad = pass->CreateAndAppendDrawQuad<TextureDrawQuad>();
1104 quad->SetAll(sqs,
1117 quad->shared_quad_state = sqs;