17366 Commits

Author SHA1 Message Date
Brandon DeRosier
106ef2d16e Handle all corner cases for stroke geometry, add bevel join & cap/join enums (flutter/engine#35) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
0b707db40b Remove duplicate points between connected components when generating polylines (flutter/engine#34) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
dd40a0e078 Add dot and cross product to Point (flutter/engine#33) 2022-04-27 15:57:33 -07:00
Dan Field
2132a0a1b9 Fix MoveTo for fills (flutter/engine#32) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
8f32a7d961 Add immediate mode manipulator widget macros for the playground (flutter/engine#28) 2022-04-27 15:57:33 -07:00
Dan Field
9ab707bf74 Support subcontours in strokes, lay groundwork for fills (flutter/engine#31) 2022-04-27 15:57:33 -07:00
Jim Graham
3c58878bbc adopt new DlAttributeType enum naming (flutter/engine#30) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
1b50769d71 Add entity playground callback (flutter/engine#27) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
55b7b49549 Add assignment operators to point (flutter/engine#26) 2022-04-27 15:57:33 -07:00
Dan Field
f22879f695 Do not include the leading point for cubic polylines (flutter/engine#29)
This avoids having duplicated points present in the polyline.
2022-04-27 15:57:33 -07:00
Brandon DeRosier
f0ec41b89e Match skia's path param ordering (flutter/engine#25) 2022-04-27 15:57:33 -07:00
Dan Field
d6807b61bf Bad cubic tests (flutter/engine#24) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
d94b25217e Fix prod build (flutter/engine#23) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
8e26f6562b Add an ImGui backend targetting Impeller to the playground (flutter/engine#20) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
c6eff71846 Respect TextureContents/Canvas::DrawImageRect source rect (flutter/engine#22) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
04b9041f58 Add mixed type specializations on algebraic ops in TPoint (flutter/engine#21)
Also adds missing RHS operator overloads for TSize.

For any algebraic ops involving TPoint and TSize:
1. `TPoint` takes precedent over `TSize`.
2. Floating point types take precedent over integer types.
3. If there's a tie (for example: `TPoint<int> + TPoint<long long>`),
   the LHS takes precedent.
2022-04-27 15:57:33 -07:00
Brandon DeRosier
f26f4b5f7a Fix index size check to respect 16 bit buffers (flutter/engine#19) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
9d14c1e663 Add baseVertex (flutter/engine#16) 2022-04-27 15:57:33 -07:00
Jim Graham
70f50783e5 changes for new DlMaskFilter objects (flutter/engine#17) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
a2170f1720 Fix bug introduced in a476b92 which broke a bunch of tests (flutter/engine#15) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
bbbbc30701 Support nested clips & clip state restoration (flutter/engine#14)
Clip restoration works with a single draw call:
- When clip paths are added, they increase the stencil height only if the stencil matches the current depth. So higher depths are always a subset of lower depths.
- When popping the canvas stack, an entity is appended to run a draw call which max bounds the stencil to the previous depth.

Fixes flutter/flutter#98631.
2022-04-27 15:57:33 -07:00
Brandon DeRosier
75460b68be Add cull mode to command (flutter/engine#13) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
6fa7495680 Add viewport and scissor support (flutter/engine#9) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
3be670ac64 Support 16bit index buffers (flutter/engine#11) 2022-04-27 15:57:33 -07:00
Jim Graham
cf5141b6e5 adopt new DlColorFilter objects (flutter/engine#12) 2022-04-27 15:57:33 -07:00
Brandon DeRosier
a7c10ebfab Fix Rect::Compare bugs (flutter/engine#10) 2022-04-27 15:57:33 -07:00
Dan Field
bfdba8de0b Wrap all MD files at 80 cols, minor cleanup of headers/indenting (flutter/engine#8) 2022-04-27 15:57:33 -07:00
Zachary Anderson
2659111946 Adds a GN flag for playgrounds (flutter/engine#7) 2022-04-27 15:57:33 -07:00
Zachary Anderson
fe169020a0 Compensate for change to saveLayer (flutter/engine#6) 2022-04-27 15:57:33 -07:00
Zachary Anderson
a7c3fab3d8 Use -M0 instead of -frecord-sources (flutter/engine#5) 2022-04-27 15:57:33 -07:00
godofredoc
125588828e create scorecards-analysis.yml (flutter/engine#4)
Adds scorecards to the impeller repository.
2022-04-27 15:57:33 -07:00
Chinmay Garde
30535c5bec Back out changes to the Impeller dispatcher stub that depend on WIP interface changes. (flutter/engine#3) 2022-04-27 15:57:33 -07:00
Chinmay Garde
d7da587052 Update tests to account for sample count defaults. 2022-04-27 15:57:33 -07:00
Chinmay Garde
4c46c6e8bb Enable playgrounds in all tests and fix default sample counts.
The sample counts were invalid after the default assumed rendering to an MSAA target.
2022-04-27 15:57:33 -07:00
Chinmay Garde
1a1a8c03f4 Link to the shader pipeline from the README. 2022-04-27 15:57:33 -07:00
Chinmay Garde
a811316e74 Add an image overview of the shader compilation pipeline. 2022-04-27 15:57:33 -07:00
Chinmay Garde
a0b5765548 Fixup minor Markdown formatting issues in the README. 2022-04-27 15:57:33 -07:00
Chinmay Garde
a5d6690e47 Add a README. 2022-04-27 15:57:33 -07:00
Chinmay Garde
9c73955e36 Cross reference issues and add additional tracing. 2022-04-27 15:57:33 -07:00
Chinmay Garde
da1929b38b Gate the minimum iOS deployment versions in the generated shaders. 2022-04-27 15:57:33 -07:00
Chinmay Garde
5ab0413c4f IOS macros have not been namespaced yet. 2022-04-27 15:57:33 -07:00
Chinmay Garde
ddb2c14ec1 Minor: Account for macro namespacing. 2022-04-27 15:57:33 -07:00
Chinmay Garde
5e9aeeb11b Remove support for the weird 5 byte pixel format. 2022-04-27 15:57:33 -07:00
Chinmay Garde
7d52f15ab7 Setup default pixel formats. 2022-04-27 15:57:33 -07:00
Chinmay Garde
b65ff957d1 Don't waste space on an unnecessary depth buffer. 2022-04-27 15:57:33 -07:00
Chinmay Garde
6984d32f56 Fix pipeline library issue related to not tracking pending futures. 2022-04-27 15:57:33 -07:00
Chinmay Garde
a440bc8733 Shader data can now be compiled into the binary.
There is no more need to figure out separate packaging of shader data.
2022-04-27 15:57:33 -07:00
Chinmay Garde
35432f7578 Forward targets specification to the code generator in impellerc. 2022-04-27 15:57:33 -07:00
Chinmay Garde
3c5bfd5901 Holy size savings Batman!
Optimize and compress shaders for size in release modes.
2022-04-27 15:57:33 -07:00
Chinmay Garde
1d95b191dc Allow resizing the playground. 2022-04-27 15:57:33 -07:00