20087 Commits

Author SHA1 Message Date
Adam Barth
f91f5ad62f Update to mojo fd8d18dbf7a4f9ed8a607648cca6d2c595b1c580 (#2770)
* Update to mojo fd8d18dbf7a4f9ed8a607648cca6d2c595b1c580

* Update mojo_sdk

* Update to account for Mojo API changes

* Backport to older base
2016-06-21 12:52:09 -07:00
Jason Simmons
e0ae976409 Roll Dart (#2771) 2016-06-21 10:55:08 -07:00
Seigo Nonaka
81c79d6e1e Fix test utilities
This fixes following three memory leaks in test utilities.
There is no problem in production code and this CL doesn't affect
any production behaviors.

- SkTypeface leaks due to forget calling SkSafeUnref in dtor.
- MinikinFontForTest leaks during constructing FontCollection.
- FontCollection leaks due to unnecessary AddRef.

Change-Id: I22e1e0307f1b2499296acb1aacc3ef66076a36e9
2016-06-21 16:47:25 +09:00
Adam Barth
661946e3e1 Add operator== to ColorFilter (#2769)
Fixes #69
2016-06-20 20:39:19 -07:00
Jason Simmons
f59f7dadbd Remove FlutterView.onResume (#2768)
It's empty and is easily confused with onPostResume
2016-06-20 15:01:15 -07:00
Jason Simmons
471beb05aa Pass the FlutterView to app message listeners (#2767)
This will make it simpler to write listeners that can be reused in multiple
applications.
2016-06-20 13:29:46 -07:00
Ian Hickson
f8b2cca611 clang -Wextra (more all that -Wall) (#2766)
I noticed this while doing the libjpeg_turbo roll.
2016-06-17 12:38:10 -07:00
Ian Hickson
1db82fde82 Update libjpeg_turbo (#2764)
* Update libjpeg_turbo

* Update our libjpeg_turbo BUILD.gn file

This brings in this file from upstream:
https://chromium.googlesource.com/chromium/src/+/master/build/secondary/third_party/libjpeg_turbo/BUILD.gn

* We don't always build with libjpeg

...so the libjpeg target isn't always available.
2016-06-17 12:16:43 -07:00
Chinmay Garde
78af411d47 Fix leaky descriptor in dart_init and use the correct macro to handle EINTRs on close syscall wrappers. (#2765)
* Use IGNORE_EINTR instead of HANDLE_EINTR when using the `close` syscall wrapper.
* Don't leak the file descriptor used to memory map Dart related artifacts.
2016-06-17 12:04:30 -07:00
John McCutchan
c69d907b49 Roll Dart forward to b2c755c59a8b2db8bfefbd922ab9ddd1a973e3bf (#2763) 2016-06-16 12:47:54 -07:00
Adam Barth
a89a5c91c4 The gen_snapshot tool requires this field to be present (#2762) 2016-06-16 09:25:15 -07:00
Adam Barth
211f2d4afb Revert base roll and its fallout.
Updating base turns out to be more complicated than I thought.

This reverts commit daa822aae70a8ab860ed8f085cdadf6987c28d03.
This reverts commit c38428c7b98951e2cccf6b38881eabd87786da49.
This reverts commit 4b73a8a0486d45081c5dde4e2c51c32d1376250b.
2016-06-15 17:30:27 -07:00
Adam Barth
daa822aae7 Fix Mac build 2016-06-15 17:19:07 -07:00
Adam Barth
c38428c7b9 Fix Mac build 2016-06-15 15:08:20 -07:00
Adam Barth
4b73a8a048 Roll base (#2761)
Update base, gn, and their clients.
2016-06-15 14:52:53 -07:00
Adam Barth
93e9328662 Fix iOS build 2016-06-15 14:03:35 -07:00
Chinmay Garde
02b7238cbb Android platform implementation of uri_launcher.mojom (#2760) 2016-06-15 12:35:06 -07:00
John McCutchan
62f7eeee8d Roll Dart forward to 9040d8f478be20e9709328c067422930a999b6cf (#2756) 2016-06-15 12:31:21 -07:00
Chinmay Garde
0b31c01843 Add platform/uri_launcher.mojom with an iOS backend. (#2759) 2016-06-15 12:17:50 -07:00
Adam Barth
886b56ad2f Fix paths in embedder.yaml (#2758)
These files are generated to different paths now.
2016-06-15 11:06:47 -07:00
Adam Barth
e34327b7b5 Move //mojo/icu to //services/icu (#2757)
The upstream mojo.git no longer contains this code.
2016-06-15 11:04:13 -07:00
Chinmay Garde
7b612b0f2f iOS: Discard the depth and stencil attachments of the framebuffer before presenting the color renderbuffer. (#2737) 2016-06-15 11:02:17 -07:00
John McCutchan
341495d517 Support for hot source reloading in the Linux glfw sky_shell (#2755)
- [x] Wire up synchronous script reloading in the library tag handler.
- [x] Allow glfw sky_shell to start from dart source as well as bundle.
2016-06-15 10:11:57 -07:00
Adam Barth
f13875ca92 Move Canvas into //flutter/lib/ui (#2754)
This patch moves the remainder of painting and compositing into their
new home (and updates their style to match Google C++ Style).
2016-06-14 23:14:14 -07:00
Adam Barth
9bc546abef Remove Dart_GetField from Paint marshalling (#2753)
This should make almost every Canvas call significantly faster.
2016-06-14 21:11:11 -07:00
Adam Barth
8e475a9570 Move most of //sky/engine/core/painting to //flutter/lib/ui/painting (#2752)
These parts don't depend on engine anymore. Also reformat them to match Google
C++ style.
2016-06-13 17:23:34 -07:00
Todd Volkert
be96958c6f Remove unused copy of xcode files during iOS build (#2751) 2016-06-13 16:25:54 -07:00
Adam Barth
46b73701f8 Start moving dart:ui into //flutter/lib/ui (#2750)
This patch moves the geometry classes.
2016-06-13 15:30:33 -07:00
Adam Barth
864beb8d26 Fix build 2016-06-13 12:45:11 -07:00
Adam Barth
c11bf6e6f8 Fix ASSERT in weather demo (#2749)
Because we're not using array buffers to marshall the vertex data for
drawVertices and drawAtlas, we need to process the paint argument first so that
we don't call Dart_GetField after creating a view into an array buffer.
2016-06-13 12:32:20 -07:00
Adam Barth
5f14c77402 Implement Canvas.drawPoints (#2748)
* Implement Canvas.drawPoints

This enables drawing polygons faster than using Paths.

Fixes https://github.com/flutter/flutter/issues/92

* Implement more Path functions

Path.fillType
Path.addPolygon
Path.addPath
Path.extendWithPath
Path.transform

Fixes https://github.com/flutter/flutter/issues/252
2016-06-13 11:42:01 -07:00
Adam Barth
f7405a3705 Remove more calls to Dart_GetField (#2747)
The only remaining calls to Dart_GetField are for Paint, which will be
handled in a later patch.
2016-06-12 00:18:16 -07:00
Adam Barth
d348a40ef3 Remove unused code in //skia (#2746)
This patch removes code in //skia that we don't use.
2016-06-11 13:49:55 -07:00
Adam Barth
12fab2f28a Move dart:jni to //flutter/lib/jni (#2744)
This patch disentangles dart:jni from //sky/engine and moves it into
//flutter/lib/jni. Eventually dart:ui will move into a peer directory.
2016-06-11 09:15:39 -07:00
Adam Barth
fabd183e6f Remove more calls to Dart_GetField (#2745)
This patch removes a number of the classes that were generating
Dart_GetField calls, particularly related to drawAtlas and drawVertices.
The functions that used these classes now use primatives instead, which
is more efficient.
2016-06-11 09:15:26 -07:00
Adam Barth
b6d8572687 Remove dead code (#2743)
We don't use this code anymore.
2016-06-10 22:45:26 -07:00
Adam Barth
633d674c48 Move tonic to //flutter/tonic (#2742)
Now that tonic doesn't depend on anything in //sky/engine anymore, we
can move the code to a location where its dependencies are clearer.
2016-06-10 22:36:38 -07:00
Adam Barth
aa4ee8e272 Cleanup dependencies of core/painting (#2741)
This patch removes spurious dependences on other parts of the engine.
2016-06-10 22:29:53 -07:00
Adam Barth
584d3928ce Remove dependency from tonic to wtf (#2740)
This patch paves the way to untangling a large amount of code from the engine.
2016-06-10 16:32:53 -07:00
Adam Barth
c6f77f173e Remove Canvas.getTotalMatrix (#2739)
This is the only readback from the canvas API. Having a write-only interface
will unlock future optimizations. This function has no clients.

Fixes #4254
2016-06-10 15:48:10 -07:00
Todd Volkert
d289a3180c Rename app.so -> app.dylib (#2738) 2016-06-10 15:00:00 -07:00
Seigo Nonaka
14e2d136aa Always use minikin namespace.
Here is a new policy of the namespace of minikin.
- All components should be in minikin namespace.
- All tests are also in minikin namespace and no anonymous namespace.

Bug: 29233740
Change-Id: I71a8a35049bb8d624f7a78797231e90fed1e2b8c
2016-06-11 00:11:17 +09:00
Seigo Nonaka
c970b3da26 Merge "Introduce initial minikin perftest" 2016-06-09 03:31:45 +00:00
Seigo Nonaka
c38b249ef7 Reconstruct the directory structure of minikin tests.
To add perftests and reuse some utility classes, reconstruct
test directory structure.

- Move unit tests from minikin/tests to minikin/tests/unittests
- Extract utilitiy classes to minikin/tests/utils which will be
  used by perftests eventually.

Change-Id: I5026b177934e72ae67d362ee888302037da2f808
2016-06-09 03:25:03 +00:00
Seigo Nonaka
08bfef04af Introduce initial minikin perftest
Bug: 28992567
Change-Id: Id14cc86761d6c5b408262fe8684e2b293a420a4f
2016-06-08 13:01:55 +09:00
Todd Volkert
a996467b0a Remove instructions to add engine's dart-sdk to user's path. (#2736) 2016-06-07 14:16:32 -07:00
Chinmay Garde
034ae44419 Only attempt to codesign service dylibs if a codesigning identity is provided. (#2735) 2016-06-03 14:36:45 -07:00
Yegor
91b890caad update Dart to get 6b6d363900 (#2734) 2016-06-03 10:47:14 -07:00
Adam Barth
81ae27ab61 Remove startup flicker on Android (#2733)
According to hackbod on Stack Overflow, we're supposed to block in the
surfaceCreated callback until we've actually drawn into the surface:

http://stackoverflow.com/questions/8772862/surfaceview-flashes-black-on-load/8888108#8888108
2016-06-02 21:01:02 -07:00
Todd Volkert
482e63dfae System chrome platform service updates (#2732)
1) Add ability to specify a system UI overlay style, to
   provide a hook into the style of the status bar icons on iOS.

2) Migrate the Activity service's task description API to the
   system chrome platform service. The old API will be removed
   once the Flutter repo is updated to use the new API after an
   engine roll.

flutter/flutter#3544
2016-06-02 15:05:51 -07:00