4200 Commits

Author SHA1 Message Date
Adam Barth
de4f2f3f16 Merge pull request #1159 from abarth/more_docs
Address more comments from #1153
2015-09-14 12:07:19 -07:00
Ian Hickson
445a61db1a Merge pull request #1158 from Hixie/mounted
Various and sundry code cleanup
2015-09-14 11:35:08 -07:00
Adam Barth
4886d2c57c Address more comments from #1153 2015-09-14 11:01:26 -07:00
Adam Barth
65fc119979 Merge pull request #1153 from abarth/proxy_box_docs
Add dartdoc for proxy_box.dart and other code in rendering
2015-09-14 10:43:10 -07:00
Hixie
dd52df055e Code cleanup
- Add documentation for AnimationTiming.
- typo: defaules -> defaults.
- added type information to isWatching() signature.
- made Widget.toStringName() include more useful information.
- cleaned up StatefulComponent._sync(): more specific signature, change
  redundant if to else, remove redundant cast.
- change order of TransitionBase arguments for consistency.
- prevent TransitionBase from affecting the performance in its
  constructor when it didn't create it (but see #1103).
- remove TODO() from @mpcomplete... no, there is not currently a better
  way to inherit a constructor, unfortunately.
2015-09-14 10:39:05 -07:00
Adam Barth
8a652df63e Add dartdoc for proxy_box.dart and other code in rendering
Almost done adding dartdoc to the rendering layer.
2015-09-14 10:35:31 -07:00
Adam Barth
05c9048930 Merge pull request #1154 from abarth/deprecated_paint
Remove use of some deprecated functions on sky.Paint
2015-09-13 20:10:30 -07:00
Adam Barth
b0719a47b6 Remove use of some deprecated functions on sky.Paint
We now expose idiomatic setters for these properties. Eventually we'll remove
the setter functions.
2015-09-13 17:24:15 -07:00
Adam Barth
d29eac44cc Merge pull request #1152 from domokit/painting-dartdoc
The painting.dart dartdoc was copypasta from rendering.dart
2015-09-11 19:44:58 -07:00
Ian Hickson
2c44e63399 The painting.dart dartdoc was copypasta from rendering.dart 2015-09-11 18:53:23 -07:00
Chinmay Garde
97489dadec Merge pull request #1144 from chinmaygarde/master
Use the CTM of the canvas to determine the dimensions of the rasterized image
2015-09-11 15:37:41 -07:00
Chinmay Garde
801559471d Use only the scale of the incoming CTM to render the picture into the offscreen surface 2015-09-11 15:36:58 -07:00
Chinmay Garde
94a3898b53 Rename rasterizer variable to be more descriptive 2015-09-11 15:25:14 -07:00
Adam Barth
7678ab5af6 Merge pull request #1147 from abarth/validate_less
ancestor is Flex assert in widgets/basic.dart
2015-09-11 15:18:50 -07:00
Adam Barth
cb59da6893 ancestor is Flex assert in widgets/basic.dart
We didn't mean to flag null ancestors for this debugging check.

Fixes #1140
2015-09-11 15:11:44 -07:00
Chinmay Garde
f6aa6899b7 Use the physical size to key the images cached in the rasterizer 2015-09-11 15:10:32 -07:00
Adam Barth
e925fbd4b4 Merge pull request #1129 from abarth/rendering_docs
Add some more docs to the rendering library
2015-09-11 15:09:53 -07:00
Adam Barth
305fb7e10f Add some more docs to the rendering library 2015-09-11 15:09:38 -07:00
Chinmay Garde
4f356fa5f2 Draw the debugging checkerboard pattern at the correct scale 2015-09-11 14:50:46 -07:00
Chinmay Garde
6180860906 Use the CTM of the canvas to determine the dimensions of the rasterized image 2015-09-11 14:46:03 -07:00
Collin Jackson
78ab62249e Merge pull request #1141 from collinjackson/iterable
MultiChildRenderObjectWrapper should take an Iterable instead of a List
2015-09-11 13:57:07 -07:00
Collin Jackson
7592213df2 MultiChildRenderObjectWrapper should take an Iterable instead of a List 2015-09-11 13:35:35 -07:00
Ian Hickson
2669d95526 Merge pull request #1139 from Hixie/debug
Improve the debugging information for Widget
2015-09-11 13:27:00 -07:00
Hixie
839c054a12 Improve the debugging information for Widget
If the build stack got long before, it would get cropped.
2015-09-11 13:25:17 -07:00
Adam Barth
0bf990b64d Merge pull request #1138 from abarth/fewer_settings
Disentangle FontSize from Settings
2015-09-11 13:12:48 -07:00
Adam Barth
437cedf45e Disentangle FontSize from Settings
Instead, just store the default font sizes in statics. These statics are
constants for now, but we'll probably make them configurable at some point.
2015-09-11 12:51:27 -07:00
Andrew Wilson
4bf1485aa9 Merge pull request #1131 from apwilson/shrinkwrap
Shrink wrap when constraints are infinite.
2015-09-11 12:37:51 -07:00
Chinmay Garde
665030586e Merge pull request #1137 from chinmaygarde/master
Add options to display frame and rasterizer statistics
2015-09-11 12:31:06 -07:00
Chinmay Garde
8af5753c02 Add options to display frame and rasterizer statistics 2015-09-11 12:24:02 -07:00
Andrew Wilson
7cd2b327c6 Shrink wrap when constraints are infinite. 2015-09-11 12:12:59 -07:00
Adam Barth
9331ea8be1 Merge pull request #1128 from abarth/rm_init
Remove init.dart
2015-09-11 11:01:32 -07:00
Adam Barth
4926d91144 Merge pull request #1127 from abarth/scroll_drag
Rename scroll.dart to drag.dart
2015-09-11 10:59:10 -07:00
Adam Barth
cafcbbae1e Merge pull request #1133 from abarth/paragraph_builder
ParagraphBuilder should be able to build a paragraph
2015-09-11 10:59:02 -07:00
Adam Barth
5b7d9b7ffd Rename scroll.dart to drag.dart
The gesture is now called "drag". The library name should match.
2015-09-11 10:55:54 -07:00
Hans Muller
73963a51e6 Merge pull request #1136 from HansMuller/restore-dismissable-unit-test
Uncomment the Dismissable unit test that checks for a #1068 fix
2015-09-11 10:51:54 -07:00
Chinmay Garde
6756e0a328 Merge pull request #1135 from chinmaygarde/master
Instrument basic metrics within the compositor
2015-09-11 10:48:05 -07:00
Hans Muller
80a91dcdce Uncomment the Dismissable unit test that checks for a #1068 fix 2015-09-11 10:44:38 -07:00
Chinmay Garde
8633293b36 Instrument basic metrics within the compositor 2015-09-11 10:37:10 -07:00
Ian Hickson
8c2405575c Merge pull request #1134 from Hixie/sync
Change how we decide if two nodes can sync.
2015-09-11 10:36:25 -07:00
Hixie
c81df6f6c0 Change how we decide if two nodes can sync.
If it's a StatefulComponent, then it's ok to reuse it so long as it
hasn't been initialised.

If it's a regular Component or a TagNode, then it's always ok to reuse.

If it's a RenderObjectWrapper, then it's ok to reuse so long as it
doesn't have a renderObject.

To put it another way, this changes how we prevent the following
nonsensical situations from arising:

 - Sync two stateful StatefulComponents together
 - Sync two RenderObjectWrappers with RenderObjects together

When either of those cases happen, we just drop the old one on the
ground and use the new one unchanged.
2015-09-11 10:26:36 -07:00
Adam Barth
29ab28d922 ParagraphBuilder should be able to build a paragraph
This patch start down the road of implementing text layout and painting without
the DOM. We can construct a basic paragraph consisting of a single run of text
and we can get through layout without crashing.
2015-09-11 10:23:15 -07:00
Hans Muller
66539f5765 Merge pull request #1126 from HansMuller/more-fling
Finish converting Dismissable and Scrollable from Listener to GestureDetector

Dismissable now only depends on GestureDetector.

Added a unit test that verifies that issue #1068 has been fixed. It's commented out for now.

Cleaned up VelocityTracker.cc et al a little.
2015-09-11 09:39:58 -07:00
Hans Muller
1ed23ea92f Finish converting Dismissable from Listener to GestureDetector
Dismissable now only depends on GestureDetector.

Added a unit test that verifies that issue #1068 has been fixed. It's commented out for now.

Cleaned up VelocityTracker.cc et al a little.
2015-09-11 09:37:55 -07:00
Adam Barth
d9cde9317d Merge pull request #1130 from abarth/fix_build
Fix build after recent compositor changes
2015-09-11 09:03:01 -07:00
Adam Barth
ae42346bb5 Fix build after recent compositor changes 2015-09-11 09:02:20 -07:00
Chinmay Garde
244de91699 Merge pull request #1119 from chinmaygarde/master
Allow compositor options to be modified at runtime
2015-09-10 23:51:33 -07:00
Adam Barth
847941f420 Remove init.dart
We haven't used init.dart in several releases. We can safely remove this no-op
script now.
2015-09-10 22:03:35 -07:00
Ian Hickson
a7bbeb70f6 Fix markdown 2015-09-10 18:12:00 -07:00
Ian Hickson
d28a3e33f4 Mention Mac-specific needs for building for Android
TBR @abarth
2015-09-10 18:11:41 -07:00
Chinmay Garde
804f0c7b46 The gr_context and canvas are stored at the frame level instead of the storing the same temporarily in the context 2015-09-10 17:32:42 -07:00