3326 Commits

Author SHA1 Message Date
Chinmay Garde
4a6bd4a796 Keyboard service implementation for iOS 2015-08-14 17:35:45 -07:00
Chinmay Garde
5e41be4bc9 Add iOS sky_app target for the fitness app example 2015-08-14 15:07:20 -07:00
Adam Barth
f338ec9779 Merge pull request #620 from abarth/compositing_update
Add a compositing update phase
2015-08-14 11:09:28 -07:00
Adam Barth
acb27118e6 Merge pull request #619 from abarth/debug_layer_borders
Add debug painting for layer borders
2015-08-14 11:07:05 -07:00
Adam Barth
810c2a6025 Merge pull request #618 from abarth/clear_black
Clear the frame to black before drawing
2015-08-14 11:06:21 -07:00
Adam Barth
386c72c050 Add a compositing update phase
We need to compute whether a RenderObject has a composited descendant so that
we can decide whether to use canvas.saveLayer or to create a new composited
layer while walking down the tree during painting.

The compositing update walks the tree from the root only to places where the
tree's structure has been mutated. In the common case during an animation loop,
we won't need to visit any render object beyond the root.
2015-08-14 10:47:39 -07:00
Adam Barth
c95724cbe0 Add debug painting for layer borders
This patch makes it easier to debug layerization issues.
2015-08-14 10:46:53 -07:00
Adam Barth
011ce5d8e7 Clear the frame to black before drawing
We used to do this in the SkPicture, but it's simpler to do it in the
rasterizer now that we're using multiple SkPictures in Dart.
2015-08-14 10:45:14 -07:00
Adam Barth
33ec74a4ec Merge pull request #617 from abarth/separate_offset_and_size
Separate the notions of offset and size in compositing
2015-08-14 10:14:52 -07:00
Adam Barth
321d06931d Separate the notions of offset and size in compositing
Separating these notions makes them easier to work with because offset is
relative to the parent layer whereas size is intrinsic to the layer itself.
This patch fixes the underpainting bugs when compositing the stocks example.
2015-08-14 09:49:38 -07:00
Adam Barth
998d9a1306 Merge pull request #616 from abarth/visit_children
Generalize _cleanRelayoutSubtreeRootChildren into visitChildren
2015-08-14 09:44:40 -07:00
Adam Barth
afddd5c553 Generalize _cleanRelayoutSubtreeRootChildren into visitChildren
This generalization will let us implement other alogorithims that need to walk
the RenderObject tree.
2015-08-14 09:37:19 -07:00
Adam Barth
7e9ccc1cd5 Merge pull request #615 from abarth/master
Remove stray reference to Typeface
2015-08-14 09:21:09 -07:00
mpcomplete
5bad6148ce Merge pull request #597 from mpcomplete/value.animation
Add a ValueAnimation helper class for AnimationPerfomance.
2015-08-14 12:03:27 -04:00
Adam Barth
ed7b8d3c32 Merge pull request #614 from abarth/fix_analyzer
Fix analyzer warnings
2015-08-14 09:01:07 -07:00
Adam Barth
705faa0ab6 Fix analyzer warnings 2015-08-14 09:00:42 -07:00
Adam Barth
94088d8626 Remove stray reference to Typeface 2015-08-14 08:58:10 -07:00
Collin Jackson
28813a9b7d Merge pull request #590 from collinjackson/rollback
Roll back drawText Canvas support; we are instead going to refactor RenderParagraph into ParagraphPainter
2015-08-13 17:05:55 -07:00
Viktor Lidholt
f54c848791 Merge pull request #607 from vlidholt/master
Updates to game sound API
2015-08-13 16:35:58 -07:00
Adam Barth
0236862429 Merge pull request #608 from abarth/composite_frame
Add a compositing step to the lifecycle
2015-08-13 16:32:18 -07:00
Adam Barth
1a062aab4e Add a compositing step to the lifecycle
Now we have the ability to draw multiple PictureLayers. We still squash all the
pictures together into a single SkPicture for simplicity. In the future, we'll
submit them to C++ separately and composite them on the GPU thread.
2015-08-13 16:31:45 -07:00
Hans Muller
acdc6bbcd3 Merge pull request #606 from HansMuller/progress-indicator
Adds CicularProgressIndicator and LinearProgressIndicator

Setting a ProgressIndicator's value to null (the default) makes it an "indeterminate progress" or activity indicator.

The indeterminate animations for both kinds of progress bars are essentially the same and wrong vis the Material Design spec, http://www.google.com/design/spec/components/progress-activity.html. I'll improve conformity with the visual design in a future CL.
2015-08-13 16:17:27 -07:00
Hans Muller
1b56e5baa4 Adds CicularProgressIndicator and LinearProgressIndicator
Setting a ProgressIndicator's value to null (the default) makes it an "indeterminate progress" or activity indicator.

The indeterminate animations for both kinds of progress bars are essentially the same and wrong vis the Material Design spec, http://www.google.com/design/spec/components/progress-activity.html. I'll improve conformity with the visual design in a future CL.
2015-08-13 16:15:21 -07:00
Adam Barth
24c9108577 Merge pull request #605 from abarth/long_press
Expose longpress and showpress in Listener
2015-08-13 16:04:17 -07:00
Viktor Lidholt
9d092ad454 Adds background music for demo game 2015-08-13 16:00:29 -07:00
Viktor Lidholt
be9d8d2dbc Unifies interfaces for SoundTrackPlayer and SoundEffectPlayer 2015-08-13 16:00:29 -07:00
Viktor Lidholt
788565248e Adds a SoundTrackPlayer class 2015-08-13 16:00:29 -07:00
Viktor Lidholt
f2cb9637ec Rename SoundCompleteCallback to SoundEffectStreamCallback 2015-08-13 16:00:29 -07:00
Viktor Lidholt
523bea099d Refactors names of sound effect classes 2015-08-13 16:00:29 -07:00
Viktor Lidholt
bad255ba3e Removes the ability to jump to different positions in sound effects (this isn't supported on Android) 2015-08-13 16:00:29 -07:00
Adam Barth
aadfeb4cb4 Expose longpress and showpress in Listener 2015-08-13 15:48:07 -07:00
Adam Barth
add08fab80 Merge pull request #604 from domokit/pylaligand-patch-1
Fixed a typo in the widget tutorial.
2015-08-13 15:19:50 -07:00
P.Y. Laligand
7c05a6d3c5 Fixed a typo in the widget tutorial. 2015-08-13 14:41:55 -07:00
Adam Barth
128ab6c0a6 Merge pull request #603 from abarth/paint_with_layers
Switch painting over to using PictureLayer
2015-08-13 14:34:12 -07:00
Matt Perry
e58a2bddc6 Add a ValueAnimation helper class for AnimationPerfomance.
Used for AnimationPerformance with a single AnimatedValue<T> variable.
2015-08-13 17:29:32 -04:00
Adam Barth
1ea911f088 Switch painting over to using PictureLayer
Currently we have a single PictureLayer that everyone draws into. A future
patch will teach the system to use multiple PictureLayers.
2015-08-13 14:24:29 -07:00
Adam Barth
9d3894715d Roll Dart 2015-08-13 14:08:27 -07:00
Chinmay Garde
281dc80f17 Merge pull request #578 from chinmaygarde/master
Make |TracingController| platform agnostic and enable collecting traces from base and the shell view dart isolate simultaneously
2015-08-13 12:58:54 -07:00
Viktor Lidholt
3d7c3cd560 Merge pull request #601 from vlidholt/master
Adds sounds to demo game bundle
2015-08-13 12:58:11 -07:00
Viktor Lidholt
9fdd8afbce Adds sounds to demo game bundle 2015-08-13 12:57:07 -07:00
Chinmay Garde
dde04057d5 Update dart_revision in DEPS 2015-08-13 12:51:54 -07:00
Viktor Lidholt
9fba58e533 Merge pull request #598 from vlidholt/master
Adds rough sound support for sprites
2015-08-13 12:51:34 -07:00
Chinmay Garde
cfec10d80d Make |TracingController| platform agnostic and enable collecting
traces from base and the shell view dart isolate simultaneously.
Trace files contain samples from multiple sources and must be merged
separately
2015-08-13 12:51:24 -07:00
Adam Barth
0ee28f5a34 Merge pull request #600 from abarth/requires_compositing
Rename createsNewDisplayList to requiresCompositing
2015-08-13 12:50:43 -07:00
Adam Barth
f3f7211df4 Rename createsNewDisplayList to requiresCompositing
This patch prepares for introducing the compositing system by repurposing the
relevant parts of the createsNewDisplayList system. This patch also removes the
no-longer-relevant parts of that system.
2015-08-13 12:43:39 -07:00
Eric Seidel
868ccc5cf8 Merge pull request #599 from eseidelGoogle/auto_keyboard
Don't claim to be a text editor
2015-08-13 12:39:06 -07:00
Eric Seidel
4a79cc8cb0 Don't claim to be a text editor
http://developer.android.com/reference/android/view/View.html#onCheckIsTextEditor()
says that we should return true if the "primary purpose" of
the view is text editing.  The keyboard still seems to work
fine if we return false here (default implementation) so
I'm removing this for now.

Fixes https://github.com/domokit/sky_engine/issues/116

@abarth
2015-08-13 12:36:01 -07:00
Viktor Lidholt
7aca14793c Adds sounds to demo game 2015-08-13 12:35:32 -07:00
Viktor Lidholt
ecfdebe5f5 Adds sound support to sprite api 2015-08-13 12:35:32 -07:00
Viktor Lidholt
127346ab56 Merge pull request #577 from vlidholt/master
Fixes issue in sprite
2015-08-13 12:33:40 -07:00