Jason Simmons
c94e4c4154
Update the raw examples to handle PointerPacket events
2015-11-11 10:44:47 -08:00
Adam Barth
3373d0ba01
Switch clients from ui.view to ui.window
2015-10-28 07:16:56 -07:00
Adam Barth
ecce1eb389
Import dart:ui as ui (instead of as sky)
2015-10-09 20:55:54 -07:00
Adam Barth
5b37f8750d
Rename dart:sky to dart:ui
2015-10-09 19:27:13 -07:00
Adam Barth
7662a30f85
Moves from vector_math to vector_math_64
...
* Moves from vector_math to vector_math_64
* Adds support for Float64List in Dart bindings
2015-10-01 14:46:13 -07:00
Adam Barth
e35e700cc4
Actually make the raw examples work again
...
In my previous patch, I forgot to fill in the other diagonal entries in the
device transform matrix.
2015-09-03 09:39:45 -07:00
Adam Barth
36c62edffb
Remove all clients of sky.view.picture
...
Everyone uses sky.view.scene now. This patch also cleans up the raw examples
and makes them follow a consistent pattern.
2015-09-02 23:35:29 -07:00
Eric Seidel
d5fe622a22
Fix analyzer warnings
...
We had a remarkable number of analyzer failures.
I'll fix the bots to analyze across the whole project
in a follow-up patch, that should prevent this
in the future.
@abarth
2015-08-17 14:32:29 -07:00
Adam Barth
e3d9ea67da
Simplify SkPicture
...
This patch simplifies the SkPicture we generate for Skia. Instead of drawing
everything into a nested SkPicture, we now draw everything into the top-level
picture, which requires us to apply the device scale factor in Dart.
2015-08-10 15:12:13 -07:00
Ian Fischer
d44ed7dfc3
Move example out of sky/packages to //examples
2015-08-07 17:04:50 -07:00
Ian Fischer
82404e030a
Move sky/examples to sky/sdk/lib/example, and code changes to support that change. Fixes T277.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1218593002 .
2015-06-26 15:06:40 -07:00
Ian Fischer
82d1eb2fdb
Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia counterparts.
...
Also changes the framework dart code to use the
refactored APIs and fixes the various examples and
tests.
R=abarth@chromium.org , ianh@chromium.org
Review URL: https://codereview.chromium.org/1190123003 .
2015-06-24 10:21:45 -07:00
Adam Barth
ad1305c35b
Wire up Android back button in SkyShell
...
The back button now triggers an event of type |back|.
R=eseidel@chromium.org , jackson@chromium.org
Review URL: https://codereview.chromium.org/1176373004 .
2015-06-11 14:33:01 -07:00
Matt Perry
cc5fde4e61
Fix bustage from my previous CL: "Color.fromARGB" becomes "new Color.fromARGB".
...
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1184523002 .
2015-06-11 15:59:10 -04:00
Matt Perry
7357aa443b
Remove redundant Paint.setARGB in favor of assigning to Paint.color.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1182563002 .
2015-06-11 15:43:53 -04:00
Adam Barth
c63c396da8
Make hit testing work in layout2.dart
...
This CL makes simple_render_tree.dart interactive by making the hit testing
system work. I've also added a mechanism for requesting an animation frame.
R=eseidel@chromium.org , ianh@google.com
Review URL: https://codereview.chromium.org/1153543002
2015-05-21 11:22:17 -07:00
Adam Barth
83805e2a9e
Plumb input events into SkyView
...
Clients can now register a callback that gets called whenever we have an event
for the view. We'll need to update the Event class at some point, but this is a
start.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1129333005
2015-05-19 16:50:28 -07:00
Adam Barth
17040ff355
Plumb display metrics into SkyView
...
This CL teaches SkyView the width, height, and device pixel ratio of the
display. In the future, we'll want some sort of notification system for when
these values change.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1139823010
2015-05-19 14:54:08 -07:00
Adam Barth
0b18d56d5a
Teach SkyView path to draw a circle
...
This CL adds a global view object that can receive a Picture and be signaled to
draw. When using SkyView, this Picture shows up on screen.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1134913003
2015-05-19 14:20:04 -07:00
Adam Barth
a21939bdaf
Teach SkyView code path to print hello, world
...
This CL makes the SkyView codepath smart enough to print "hello, world" to the
console. The code path is off by default but can be enabled by changing one
line of code.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1131673011
2015-05-19 13:51:12 -07:00