20087 Commits

Author SHA1 Message Date
Devon Carew
284929b605 update _embedder.yaml (#2599) 2016-04-18 09:50:02 -07:00
Jason Simmons
5704322798 Add a --deploy build option that enables Dart product mode (#2598) 2016-04-15 12:18:57 -07:00
Seigo Nonaka
b2b218470f Returns hasVariationSelector true for VS15/VS16 am: 994aa84
am: 34c784e

* commit '34c784e5ef4f93ddc54d84727b3d50e186da5056':
  Returns hasVariationSelector true for VS15/VS16

Change-Id: I14b0971a3ff50572e594a0814a26e10113fe7c1c
2016-04-15 15:38:18 +00:00
Seigo Nonaka
34c784e5ef Returns hasVariationSelector true for VS15/VS16
am: 994aa84

* commit '994aa84f7b18466806fe552ea57da1852b909f24':
  Returns hasVariationSelector true for VS15/VS16

Change-Id: Iff3953948c8457e2a85e5859559411511a326f33
2016-04-15 15:31:59 +00:00
Seigo Nonaka
994aa84f7b Returns hasVariationSelector true for VS15/VS16
Minikin has a special font fallback for VS15/VS16, so
hasVariationSelector for emojis with VS15/VS16 should always return
true.

Bug: 27531970
Change-Id: Ieebd58f48b135b6ec50d999df68dcc09b1284606
2016-04-15 12:45:04 +09:00
Ian Hickson
68cc67f2ec Merge pull request #2597 from Hixie/3177
Fix crashes with LastPass, Now-on-Tap, DashLane
2016-04-14 18:08:05 -07:00
Raph Levien
c3aa6114d7 Merge "Clear mLineWidths in LineBreaker::finish()" into nyc-dev am: b1203b6
am: 4d42baf

* commit '4d42baffd1e488da1aa691c241cb1f060d0deb42':
  Clear mLineWidths in LineBreaker::finish()

Change-Id: I59606b706f78eda015da28f0ce6201b445086cbe
2016-04-13 16:25:06 +00:00
Raph Levien
4d42baffd1 Merge "Clear mLineWidths in LineBreaker::finish()" into nyc-dev
am: b1203b6

* commit 'b1203b648acb109fddd537f8d76d168b7f70103e':
  Clear mLineWidths in LineBreaker::finish()

Change-Id: I968a1584b9f2d2242725b8ab7047091ca9ecd6ee
2016-04-13 16:21:38 +00:00
Raph Levien
b1203b648a Merge "Clear mLineWidths in LineBreaker::finish()" into nyc-dev 2016-04-13 16:11:56 +00:00
Raph Levien
879e8a3a47 Clear mLineWidths in LineBreaker::finish()
There was the possibility of stale indents from previous invocations
persisting in the mLineWidths across multiple invocations. This patch
clears them.

Bug: 28090810
Change-Id: I3621dfbe983512046289373711709aeade52eab4
2016-04-12 15:27:17 -07:00
John McCutchan
c3504b519f Fix snapshotter deps file output (#2593)
- [x] Add the path not the url to the dependencies
2016-04-12 09:48:19 -07:00
Seigo Nonaka
ba8a54685d Fix minikin_unittests am: 6c60831
am: af36413

* commit 'af36413cd85c478bb471ffa9ec84a0a8bee0bce9':
  Fix minikin_unittests

Change-Id: Ibac5c54ae165d96811238a4e8d2e9612d1192eaf
2016-04-11 21:09:46 +00:00
Seigo Nonaka
af36413cd8 Fix minikin_unittests
am: 6c60831

* commit '6c60831cfce24b0749f50f37231e0a56d8fd4b85':
  Fix minikin_unittests

Change-Id: I865dd495ed60b0bbace0ba77b2071dac058887e9
2016-04-11 21:01:14 +00:00
Seigo Nonaka
6c60831cfc Fix minikin_unittests
This CL fixes following test cases in minikin_tests
- FontFamilyTest.hasVariationSelectorTest
- HbFontCacheTest.getHbFontLockedTest
- HbFontCacheTest.purgeCacheTest

For the fix of FontFamilyTest.hasVariationSelectorTest, removing virtual
from GetUniqueId() in MinikinFont.  After [1], MinikinFont's destructor
started calling purgeHbCache() which calls virtual method,
MinikinFont::GetUniqueId().  Fortunately, the SkTypeface::uniqueID()
returns just internal value, so we can store it at the construction time
and use it instead of calling SkTypeface::uniqueID() every time.

This patch also changes purgeHbFont to purgeHbFontLocked, as all uses of
it were already under global mutex. This change avoids deadlock on
explicit unref, as when invoked by a Java finalizer from the Java object
that holds a reference to the font.

Some of the tests needed to change to using the ref counting protocol
rather than explicitly destructing font objects, as well.

[1] 9afcc6e2bd4d89e4e1deb6e18c3c4daca4e114fd

Bug: 28105730
Bug: 28105688
Change-Id: Ie5983c4869147dacabdca81af1605066cd680b3f
2016-04-11 13:33:35 -07:00
Jason Simmons
9cb0aa1ac9 Enable compression when building flutter.jar (#2592)
Fixes https://github.com/flutter/flutter/issues/3234
2016-04-11 11:41:13 -07:00
Jason Simmons
c53ddc5c5f Allow detach of an Android PlatformView that still holds a window (#2591)
The PlatformView may not receive the surfaceDestroy notification before its
activity is destroyed (this was happening on the Android emulator).

If this happens, allow the PlatformView to be detached and have it release
its window during destruction.
2016-04-11 11:08:14 -07:00
Jason Simmons
4265c1008e Do not reuse the va_list in vprintf_stderr_common (#2590)
This is unsafe and was crashing on the Android x64 emulator
2016-04-08 15:20:13 -07:00
Chinmay Garde
cc0e481dd5 Create iOS armv7 assets in a separate directory. (#2589)
This allows us to create a separate buildbot target.
2016-04-08 12:47:09 -07:00
Chinmay Garde
6a08207369 When looking for the host snapshotter, use the correct Dart toolchain. (#2588)
This matters when building for armv7 where we need the 32-bit snapshotter on the host.
2016-04-08 12:31:15 -07:00
Chinmay Garde
bac3af48a4 Remove SkyHeadless (#2587) 2016-04-08 11:20:28 -07:00
Raph Levien
f76186f33e Update minikin/sample code to use new GetTable am: 29abb82
am: bfc161d

* commit 'bfc161d8fa1f1d5d4a2284b3d5beef2045c96176':
  Update minikin/sample code to use new GetTable

Change-Id: Idd6063401cdb1399bac52c975a32a0a0b221652f
2016-04-08 18:10:08 +00:00
Chinmay Garde
cc3801a431 Leak the embedder message loop on Mac. (#2585)
Dart has the tendency to call `exit()` on arbitrary threads. This causes
the assertion to trip. Since this should only happen when Dart is
running the shell in non-interactive mode, we leak the message loop
without proper shutdown.

We should never hit this path on iOS.
2016-04-08 11:00:07 -07:00
Raph Levien
bfc161d8fa Update minikin/sample code to use new GetTable
am: 29abb82

* commit '29abb82198868908ece4600284fa8b7d3ed73f3b':
  Update minikin/sample code to use new GetTable

Change-Id: I5fcae79c42322dcc0533dbd3eb1a51007e089170
2016-04-08 17:55:14 +00:00
Raph Levien
29abb82198 Update minikin/sample code to use new GetTable
We changed the signature of the MinikinFont::GetTable method. This
patch updates the sample code, and fixes the build.

Change-Id: I1977be868bf7636986fc802915f3dd54c418a73a
2016-04-08 10:28:47 -07:00
Raph Levien
46899c5c85 Avoid copying of font table data am: aaa4e34
am: 0b5d3b2

* commit '0b5d3b2bea4bcb59a5d20f54cb4f81e0aa46ebce':
  Avoid copying of font table data

Change-Id: Ie1e0be38e1875702414b7ca005c5837bd60b82d8
2016-04-08 16:57:34 +00:00
Raph Levien
0b5d3b2bea Avoid copying of font table data
am: aaa4e34

* commit 'aaa4e3470270496e6eb80704eadecb2cb7c56bf0':
  Avoid copying of font table data

Change-Id: Idc4074ebf93595fa0420986814462095730f00c2
2016-04-08 16:49:56 +00:00
Adam Barth
a299d69f6c Rename PlatformViewAndroid to io.flutter.view.FlutterView (#2586)
This patch cleans up the public Java interface to the Flutter engine. The code
that we intend to be re-usable is now in the io.flutter.view package. The two
public classes are:

 * FlutterMain, which controls initialization of the system, and
 * FlutterView, which is an Android view that hosts a Flutter app.

We'll need to interate on these interface over time, but at least these names
are more reasonable.
2016-04-08 09:39:14 -07:00
Raph Levien
aaa4e34702 Avoid copying of font table data
The hb_font_t object holds on to tables of font data, acquired through
the MinikinFont::GetTable interface, which is based on copying data
into caller-owned buffers. Now that we're caching lots of hb_font_t's,
the cost of these buffers is significant.

This patch moves to a different interface, inspired by HarfBuzz's
hb_reference_table API, where the font can provide a pointer to the
actual font data (which will often be mmap'ed, so it doesn't even
consume physical RAM).

Bug: 27860101
Change-Id: Id766ab16a8d342bf7322a90e076e801271d527d4
2016-04-08 08:26:38 -07:00
Raph Levien
ff5e822a7b Purge hb font on Minikin font destruction am: 9afcc6e
am: aa49542

* commit 'aa49542698ca22f2e70418a33d4829ab93e433f2':
  Purge hb font on Minikin font destruction

Change-Id: If40c31c90bf4f12fdd882be4f2c6f9b35ba2d09c
2016-04-07 22:42:46 +00:00
Raph Levien
aa49542698 Purge hb font on Minikin font destruction
am: 9afcc6e

* commit '9afcc6e2bd4d89e4e1deb6e18c3c4daca4e114fd':
  Purge hb font on Minikin font destruction

Change-Id: Idb2034353407e8b390cc07862803f846d5adea0c
2016-04-07 22:38:47 +00:00
Raph Levien
9afcc6e2bd Purge hb font on Minikin font destruction
This patch eagerly purges the corresponding hb_font_t object from
the HbFontCache when the underlying MinikinFont is destroyed. After
that, the key will no longer be accessed, so having the entry is
wastes memory.

Bug: 27251075
Bug: 27860101
Change-Id: I1b98016133fe3baf6525ac37d970a65ddccadb4f
2016-04-07 13:43:15 -07:00
Jason Simmons
cd30c9ff3c Do not show an assertion failure if Dart_FinalizeLoading returns an error while building a snapshot (#2584)
This might happen due to errors expected during development (e.g. a mistyped

Dart class name)
2016-04-07 12:33:21 -07:00
Jason Simmons
94a4b96b40 Fix a typo ("threshold") (#2583) 2016-04-07 10:37:33 -07:00
Jason Simmons
30548c0ea7 Return the content-length header in the diagnostic server 2016-04-06 17:21:18 -07:00
Chinmay Garde
520a563545 Dont destroy the platform message loop on the Mac because the message pump is still not collected when the embedder state goes away. 2016-04-06 17:13:24 -07:00
Chinmay Garde
ed3014b3d3 Bump up the mac_sdk_min GN arg to 10.8 and fix deprecated declaration.
Required by the Dart dependency.
2016-04-06 11:20:04 -07:00
Jason Simmons
7182341f85 Merge pull request #2579 from jason-simmons/skia_skp_capture
Add an HTTP server for exporting Flutter debug info and a request han…
2016-04-06 10:22:46 -07:00
John McCutchan
ff9af06e26 Fix Loader::Fetch to use the file path and not the uri. 2016-04-05 12:52:12 -07:00
Chinmay Garde
31eae91cc2 Add dart:ui color to VM embedder entry points. 2016-04-05 12:42:17 -07:00
Adam Barth
0edb28b1a7 Fix Mozart crash
Fixes #3095
2016-04-05 12:02:37 -07:00
John McCutchan
48d4d99f9e Merge pull request #2574 from johnmccutchan/fix_canonicalization
Fix uri canonicalization in DartLibraryProviderFiles
2016-04-05 10:24:08 -07:00
Devon Carew
4f39fd2169 Merge pull request #2575 from flutter/devoncarew-patch-1
Update jni.dart
2016-04-05 10:09:52 -07:00
Seigo Nonaka
27f3bc0b52 Support multiple locales for font language settings. am: f3afe92
am: 5f7df3e

* commit '5f7df3eca54701632ee28733ab2412351e5cddd7':
  Support multiple locales for font language settings.

Change-Id: I27df2a2d6de262599931a16a9a65030149ee8991
2016-04-05 06:45:33 +00:00
Seigo Nonaka
5f7df3eca5 Support multiple locales for font language settings.
am: f3afe92

* commit 'f3afe92def0fff022889fd036d68451223aac146':
  Support multiple locales for font language settings.

Change-Id: Iad60bf1c01f309e70c3b1ad22e28b22afe44b33f
2016-04-05 06:42:58 +00:00
Chinmay Garde
893425d960 When launching directly from Xcode, use 8181 as the observatory port. 2016-04-04 13:37:56 -07:00
Adam Barth
2123899cc6 Jank insted of flicker in Mozart
Currently there's no good way of synchronizing layout changes with children in

Mozart. Previously we flickered when we were out of sync with our child. Now we

jank instead because that's a more acceptable artifact while we work on

improving Mozart.



Fixes https://github.com/flutter/flutter/issues/3024
2016-04-04 12:17:39 -07:00
Chinmay Garde
37847ca4c4 Merge pull request #2571 from chinmaygarde/timeline
Update thread names in the Dart timeline.
2016-04-04 11:43:17 -07:00
Seigo Nonaka
f3afe92def Support multiple locales for font language settings.
Some fonts support multiple scripts, for example, some fonts for
Korean supports not only "Kore" but also "Jamo".

To select fonts based on their multiple languages, this CL introduces
the following changes:
- Compares all languages of the font family and use the maximum score
  for font selection.
- Even if each language of the font family doesn't support the requested
  language, the font get score of 2 if the requested font is covered by
  all of the languages of the font family. For example, the font for
  "ko-Hang,ko-Hani" gets score of 2 for the requested language "ko-Kore".

Bug: 26687969

Change-Id: I7f13b51464c9b01982bb573251d77052b9ddbd70
2016-04-04 22:31:16 +09:00
Adam Barth
13f67343d0 Add support for backdrop filters in the compositor
Particularly, add support for blur filters to implement backdrop blur effects.
2016-04-01 17:15:36 -07:00
Collin Jackson
b8151a8d9b Merge pull request #2524 from collinjackson/google_signin
Allow third-party services to listen to openURL on iOS (needed for Google Sign-In)
2016-04-01 07:08:54 -07:00