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
945b5bcd64
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
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
375c24772e
Remove weak handle from sky.Paint
...
This patch converts sky.Paint to be a pure Dart object, which means we don't
need to open a weak handle to sky.Paint. Avoiding the weak handle reduces the
amount of weak handle callbacks we need to process at the end of GC and
therefore reduces jank.
2015-08-11 09:37:20 -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
Matt Perry
4d66e7d0f0
Add a Paint::toString() method to describe our Paint objects.
...
Add a test for RenderDecoratedBox sets up the Paint object correctly.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1185423003 .
2015-06-18 13:47:28 -04:00
Adam Barth
8e5245c9a1
Implement ColorFilter in widgets/basic.dart
...
Also, trim the redundant |Mode| suffix from the TransferMode names.
R=ianh@google.com
Review URL: https://codereview.chromium.org/1188003006 .
2015-06-17 17:06:27 -07:00
Matt Perry
f8b4af944c
Expose and use constants for DrawLooperLayerInfo.setPaintBits to dart.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1175403002 .
2015-06-11 15:41:12 -04:00
Matt Perry
a523d7f3ea
Fix up constructor naming style for MaskFilter and ColorFilter.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1179913002 .
2015-06-11 13:15:20 -04:00
Matt Perry
0f8ae9f16c
Add a MaskFilter interface to dart:sky to handle blur.
...
For this, I added back my previous CustomDart attribute for customizing the
generated Dart code of an interface.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1162843003
2015-06-02 17:26:32 -04:00
Matt Perry
9618a82750
Add TransferMode to dart:sky, and use it instead of passing ints around.
...
Also use Point in place of passing 2 ints to the DrawLooper API.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1158883004
2015-06-02 15:03:44 -04:00
Matt Perry
96b04e34b1
Add an API to set the ColorFilter on a Paint object.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1158693005
2015-05-28 17:17:11 -04:00