20087 Commits

Author SHA1 Message Date
Adam Barth
c64973deb6 AnimatedType should hit |end|
Some clients of AnimatedType watch for the |end| value to complete their work.
This CL ensures that we actually hit the end when t == 1.0.

Also, add a |distance| property to Offset.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1238573002 .
2015-07-13 16:09:39 -07:00
Eric Seidel
b7534eaae1 Fix typo in publish_apk.py
TBR=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1235813007 .
2015-07-13 15:29:53 -07:00
Hans Muller
0f7c0d6434 Example test for CardCollectionApp (Dismissable, VariableHeightScrollable)
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1238513003 .
2015-07-13 15:28:27 -07:00
Eric Seidel
6899a5e178 Update big_red_button instructions and add --dry-run mode.
I also made the add_argument blocks shorter by allowing more
than one named arg per line.  I removed the metavar lines
and action=store lines since one was only used in help messages
and the other was already matching the default for add_argument.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1234803004 .
2015-07-13 15:24:54 -07:00
Eric Seidel
df1dadb8fc Add a git fetch before git reset --hard origin/master in big_red_button.py
TBR=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1235593003 .
2015-07-13 15:05:36 -07:00
Eric Seidel
a36e246cb4 Roll versions and add a new release_notes directory.
TBR=johhmccutchan@google.com

Review URL: https://codereview.chromium.org/1231413004 .
2015-07-13 14:52:15 -07:00
Eric Seidel
b2d4b2d2f2 Add a script for publishing an APK to the Play store.
Also added a confirmation to big_red_button.py and made
it executable.

R=abarth@chromium.org, johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1233853006 .
2015-07-13 14:50:55 -07:00
Adam Barth
1a3adcafb7 Remove onFrame callback
Clients can just register persistent frame callbacks if they want to do some
processing every frame.  Also, add some more trace events.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1237623004 .
2015-07-13 13:43:27 -07:00
Adam Barth
b3c618b9d8 Roll Skia to 2ced78866fcadd98895777c8dffe92e229775181
The Skia rolls will continue until morale improves.

New version of SkMemory_new_handler.cpp from Chromium.

TBR=chinmaygarde@google.com

Review URL: https://codereview.chromium.org/1235863004 .
2015-07-13 13:20:23 -07:00
Adam Barth
a68126d95d Roll Skia to 7b971f0152299ae9a924252a9bfd220318497bdd
R=chinmaygarde@google.com

Review URL: https://codereview.chromium.org/1236953002 .
2015-07-13 12:54:08 -07:00
Adam Barth
41bdeb7602 Reduce the quality of the blur in the material shadows
Using a high-quality blur takes a long time in Skia, and it's hard/impossible
to see the difference visually.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1241443002 .
2015-07-13 12:50:36 -07:00
Hans Muller
1f68f3851b Dismissable component
Lifted the code from the card_collection example.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1237713002 .
2015-07-13 12:43:56 -07:00
Adam Barth
29154f007a Add machinery for dumping SkPictures to disk
R=ianh@google.com

Review URL: https://codereview.chromium.org/1235813005 .
2015-07-13 12:36:12 -07:00
Hixie
50d089eb35 Remove redundant setState() calls around scroll behaviour updates.
We don't need to rebuild when those change; we only got the change because we rebuilt in the first place.

R=jackson@google.com

Review URL: https://codereview.chromium.org/1234863004 .
2015-07-13 12:05:54 -07:00
Eric Seidel
eaf7228fff Start an AddressBook example (to test text fields)
Also fixed a bug in tool_bar where not supplying a
center caused right not to be on the right.

R=abarth@chromium.org, abarth@google.com

Review URL: https://codereview.chromium.org/1234963002 .
2015-07-13 11:29:51 -07:00
Hixie
01c039bef4 Make changing themes work again.
The fix is just to call syncFields() after calling setParent(), not
before. This way makes more sense anyway.

Also, check in some debug tools I used to track this down, and
document some of the debug tools I used.

Also, minor fixes to style.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1231873007 .
2015-07-13 11:13:43 -07:00
Hixie
67f85e35ba Trivial code style changes in animation code.
R=mpcomplete@chromium.org

Review URL: https://codereview.chromium.org/1232403004 .
2015-07-13 11:11:19 -07:00
Adam Barth
989aea10fc Reduce the number of temporary Paint objects
Now we cache Paint objects for ColorFilter and Opacity, which gives Skia a
chance to retains the underlying GPU resources.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1235813004 .
2015-07-13 11:10:48 -07:00
Hixie
e842fb58d9 Rearrange code in widget.dart StatefulComponent to be more like the order in which it actually runs.
This will make the diff of a subsequent CL much cleaner.

TBR=abarth

Review URL: https://codereview.chromium.org/1231623007 .
2015-07-13 10:52:25 -07:00
Adam Barth
522f66eed7 Remove createNewDisplayList from RenderTransform and RenderInkWell
Creating a new display list is having an unexpected effect on the GPU
rasterization times. This CL removes createNewDisplayList from RenderTransform
and RenderInkWell until we have a better understanding of when we want to use
it.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1223063005 .
2015-07-13 09:58:36 -07:00
Adam Barth
c536e3903a Use package:sky imports consistently
Apparently this style is recommended by Dart developers.

TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1232313002 .
2015-07-11 21:37:29 -07:00
Adam Barth
cf9d24b75d Fix some info-level warnings from Dart analyzer
TBR=eseidel@google.com

Review URL: https://codereview.chromium.org/1226103013 .
2015-07-11 11:23:48 -07:00
Hans Muller
63318886a0 Move VariableHeightScrollable to sdk/lib/widgets
Added a callback to BlockViewport so that the scrollable can
stay in sync with the viewport's contents.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1227823012 .
2015-07-10 17:13:26 -07:00
Hixie
442c55b4c4 Make the drawer, popup menus, dialogs, and settings page scrollable.
Also, fixes the stocks list to work properly including hit testing at
the bottom of the screen.

New classes:

RenderViewport: a class that supports positioning a child inside
itself and offsetting it.

Viewport: a RenderObjectWrapper that wraps RenderViewport.

ScrollableViewport: a Component that hooks Viewport up to some
scrolling behaviour.

Code changes:

RenderBlock now only works when it has an unbounded height constraint.
I removed the clipping in there since it's no longer needed.

I made FixedHeightScrollable use Viewport instead of hand-rolling its
clipping with Transform and Clip. This is what fixes the stocks list
hit testing at the bottom of the screen.

I made anywhere that used to use Block now use ScrollableViewport.

RenderFlex now takes a list of children.

Justifications for test changes:

tests/examples/stocks: changing FixedHeightScrollable to use a
RenderViewport instead of a RenderClipRect/RenderTransform combination
removes the use of an actual transform.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1223153004 .
2015-07-10 16:54:19 -07:00
Hixie
56ef46312f Remove "RenderBlock" class from examples that use it without giving it unrestricted height.
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1232063006 .
2015-07-10 16:31:27 -07:00
Collin Jackson
09a82d4935 Add new initState method to widget, rename animated_container to animation_builder and refactor it. This fixes the background color of the settings page.
R=abarth@chromium.org, abarth, mpcomplete

Review URL: https://codereview.chromium.org/1233703003 .
2015-07-10 16:27:17 -07:00
Adam Barth
688a084e86 Switch scroll physics over to using newton
The scroll physics was the last client of the old frame generator. With this
change, we've fully switched over to the new animation system.

R=chinmaygarde@google.com

Review URL: https://codereview.chromium.org/1226133004 .
2015-07-10 15:48:03 -07:00
Hixie
93a94f315b Put back the setter being used by the test harness...
TBR=abarth

Review URL: https://codereview.chromium.org/1232483004 .
2015-07-10 15:33:51 -07:00
Hixie
a5f5666ca4 Support getting baseline from paint as well as layout.
To make sure this doesn't break the markNeedsLayout() logic, I added members to track who is currently painting.
Also, some minor rearrangements of the code in object.dart about painting.
Also, make exceptions in debug mode rethrow so we get a stack trace.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1235713002 .
2015-07-10 15:25:55 -07:00
Eric Seidel
4ccdbfd35a Fix more Analyzer warnings in Atom
R=abarth@chromium.org, ianh@google.com

Review URL: https://codereview.chromium.org/1236683003 .
2015-07-10 15:20:59 -07:00
Hixie
2904bac1a6 Support for FlexAlignItems.stretch.
R=jackson@google.com

Review URL: https://codereview.chromium.org/1229353002 .
2015-07-10 14:35:09 -07:00
Collin Jackson
fb86cfb561 Make back button on stocks app search bar the accent color. Also, apply text theme to the the entire toolbar rather than just the center.
R=abarth@chromium.org, abarth

Review URL: https://codereview.chromium.org/1235693002 .
2015-07-10 14:34:52 -07:00
Hixie
22e9c9c618 Make RenderFlex support taking children in the constructor.
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1231203002 .
2015-07-10 14:29:33 -07:00
Collin Jackson
a3de4bd879 Make performance and position private since they don’t sync
R=abarth@chromium.org, abarth

Review URL: https://codereview.chromium.org/1230273004 .
2015-07-10 14:12:17 -07:00
Hixie
e672c1ddd0 Remove redundant 'flex' prefixes on enum values.
R=chinmaygarde@google.com

Review URL: https://codereview.chromium.org/1232063004 .
2015-07-10 13:57:46 -07:00
Eric Seidel
b4aa27685c Fix Asteroids game to paint again and give it an icon.
I also fixed dependencies on Activiy and Keyboard etc
which were incorrectly included only in SkyDemo despite
being depended on by the Sky Framework.

R=abarth@chromium.org, abarth@google.com, viktork@google.com

Review URL: https://codereview.chromium.org/1225103009 .
2015-07-10 13:42:03 -07:00
Hixie
87f477eb93 Minor style fixes to TaskDescription.
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1233513003 .
2015-07-10 13:39:33 -07:00
Adam Barth
bb57df4092 Generate Sky's _sdkext file using the build system
This CL removes sky/sdk/lib/_sdkext from the source tree so that we can have a
tweaked version during development.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1233493008 .
2015-07-10 13:04:47 -07:00
Viktor Lidholt
f9d2c42f71 Improved action animations in sprites
Actions can only be added once
Makes sure instant actions are run on Repeat and RepeatForever
Adds ActionGroup which runs actions in parallell
Adds support for animation curves and easing
Makes it possible to animate sizes and rects

Fixes issue with SpriteBox not being updated

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1235653004 .
2015-07-10 12:26:41 -07:00
Adam Barth
9c5a4433a7 Fix typos and error handling in setup_dart_analyzer
TBR=eseidel@google.com

Review URL: https://codereview.chromium.org/1235673002 .
2015-07-10 12:12:10 -07:00
Adam Barth
740b12a9d1 Add a script to setup source tree for Dart analyzer
Once the new Dart analyzer server rolls in, this script will set up your source
tree to integrate with it properly.

R=eseidel@chromium.org, eseidel@google.com

Review URL: https://codereview.chromium.org/1227913007 .
2015-07-10 12:02:35 -07:00
Collin Jackson
f850f23f23 Support for icon theming
R=ianh@google.com, hixie

Review URL: https://codereview.chromium.org/1235443002 .
2015-07-10 11:14:17 -07:00
Eric Seidel
6f0c2d0983 Teach SkyShell.apk to stop posting frames when not visible
This listens to both surface destruction as well as activity
pause/unpause.

R=abarth@chromium.org, abarth@google.com

Review URL: https://codereview.chromium.org/1230073002 .
2015-07-10 10:26:54 -07:00
Adam Barth
896c97b90c Delete AnimationValue
Please use AnimationType and AnimationPerformance instead.

R=mpcomplete@chromium.org

Review URL: https://codereview.chromium.org/1232473003 .
2015-07-10 10:25:50 -07:00
Adam Barth
b0c4a8c15e Port PopupMenu to the new animation system
This CL is the first step in the port. The second step will be to decompose the
animation in to a number of variables, one for the menu itself and one for each
of the menu items.

R=mpcomplete@chromium.org, mpcomplete@google.com

Review URL: https://codereview.chromium.org/1228233004 .
2015-07-10 10:23:51 -07:00
Adam Barth
e70c7e05a8 Fix bugs found by Dart analyzer
Now that we have the analyzer working locally, it shows us lots of bugs. This
CL fixes the bugs.

R=eseidel@chromium.org, eseidel@google.com

Review URL: https://codereview.chromium.org/1233673003 .
2015-07-10 10:21:35 -07:00
Adam Barth
8364a1d6fa Make Sky example game run offline
R=viktorl@google.com, eseidel@google.com

Review URL: https://codereview.chromium.org/1227373004 .
2015-07-10 09:49:09 -07:00
Adam Barth
9b6192bc34 Remove pubspec.yamls for sky/sdk/example
As long as these examples are part of sky/sdk, they don't need pubspec.yamls
because they inherit them from sky/sdk/pubspec.yaml. Eventually we'll want to
move these examples to their own repo, but we're not ready for that yet.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1233453005 .
2015-07-10 09:48:32 -07:00
Adam Barth
6cd88affcb Add package:newton as a dependency of package:sky
Also, update the dependency versions for other packages to be more realistic.

R=chinmaygarde@google.com

Review URL: https://codereview.chromium.org/1233663002 .
2015-07-10 09:25:49 -07:00
Hans Muller
a551de395b Card "swipe-away" dismiss version 3: Uses BlockViewport
Scrollable version of the existing demo.

Includes Ian's BlockViewport fixes.

Still TODO: track the layout and update the ScrollBehavior's
contentsHeight as needed. Stop when we've reached the need.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1227963003 .
2015-07-10 08:46:17 -07:00