30246 Commits

Author SHA1 Message Date
Adam Barth
5210b088eb Update Skia (#2626) 2016-04-27 14:59:06 -07:00
Jason Simmons
38f4bfd597 Remove a redundant line from the gn script (#2619) 2016-04-25 17:05:31 -07:00
Jason Simmons
58345daf37 Fix the dist target when building in AOT (deploy) mode on Android (#2617) 2016-04-25 15:37:48 -07:00
Adam Barth
ae16e4249e Remove the extra lints from _embedder.yaml (flutter/engine#2616)
These were forcing our customers to obey these lints, but not all of our
customers like them. We might enable some of these in the future if they have
concrete benefits (e.g., faster generated code when compiling ahead-of-time).
2016-04-25 11:31:48 -07:00
Jason Simmons
dcfb093293 Support ahead-of-time compilation on Android in the engine (flutter/engine#2614)
This include build system changes for selecting Dart's precompiler mode
plus a way to locate and load the precompiled snapshot library from an
Android application
2016-04-25 10:45:23 -07:00
Yegor
2966060425 libdart_precompiled_runtime is gone; fix ios build (#2613) 2016-04-22 16:31:32 -07:00
Jason Simmons
b3dd19dc8f Roll Dart and set dart_runtime_mode in the GN script (#2610) 2016-04-22 11:02:41 -07:00
Adam Barth
75b5912bd2 Break dependency from Layer to PaintContext (flutter/engine#2609)
Instead, make Layer::Paint take a new PaintContext that has just exactly
the state that it needs, mirroring PrerollContext. Also, rename
PaintContext to CompositorContext because it holds the context for the
whole compositor.
2016-04-21 23:05:41 -07:00
Adam Barth
785c11d6d9 Fix style in //flow/instrumentation (flutter/engine#2608)
This patch makes these files better match Google C++ style.

Also, add the engine lap time when running on Mojo.
2016-04-21 22:36:46 -07:00
Adam Barth
98fc65a85b Improve paint bounds computation in flow (flutter/engine#2607)
We now compute the bounds for all container layers, including clips, and
use those bounds to tighten down our clips and save layers.
2016-04-21 21:50:44 -07:00
Adam Barth
9c8595512e Make OpacityLayer hit SkRecordNoopSaveLayerDrawRestores (flutter/engine#2604)
Previously we were applying opacity in a different way than Skia
expects. Now we use the exact pattern that Skia expects so that we hit
more optimizations inside SkRecordOptimize.

After this patch, we don't actually get the optimization because we
don't yet run SkRecordOptimize over the composited tree. A later patch
will actually cause us to run SkRecordOptimize.
2016-04-21 07:55:37 -07:00
Seigo Nonaka
47932fa53b Do not break before and after ZWJ.
The emoji list is generated from external/unicode/emoji-data.txt

Bug: 28248662
Change-Id: Ie49b3782505665d62c24371ca23d317ae5e9c5f7
2016-04-19 14:09:38 +00:00
Devon Carew
c7c2b6aa1c update _embedder.yaml (#2599) 2016-04-18 09:50:02 -07:00
Jason Simmons
a72bdad086 Add a --deploy build option that enables Dart product mode (#2598) 2016-04-15 12:18:57 -07:00
Seigo Nonaka
0f5d87990b 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
Raph Levien
1aa246aa80 Merge "Clear mLineWidths in LineBreaker::finish()" into nyc-dev 2016-04-13 16:11:56 +00:00
Raph Levien
0ae37ab603 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
6c60410c09 Fix snapshotter deps file output (flutter/engine#2593)
- [x] Add the path not the url to the dependencies
2016-04-12 09:48:19 -07:00
Seigo Nonaka
bb8b7fd32f 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] 1ea4165cef

Bug: 28105730
Bug: 28105688
Change-Id: Ie5983c4869147dacabdca81af1605066cd680b3f
2016-04-11 13:33:35 -07:00
Jason Simmons
25eff9fadf Enable compression when building flutter.jar (flutter/engine#2592)
Fixes https://github.com/flutter/flutter/issues/3234
2016-04-11 11:41:13 -07:00
Chinmay Garde
9cf1a6e7ac Create iOS armv7 assets in a separate directory. (flutter/engine#2589)
This allows us to create a separate buildbot target.
2016-04-08 12:47:09 -07:00
Raph Levien
d2161cf80f 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
a8e8948bd7 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
1ea4165cef 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
a1ebcdeb94 Do not show an assertion failure if Dart_FinalizeLoading returns an error while building a snapshot (flutter/engine#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
c1b21af2c5 Fix a typo ("threshold") (#2583) 2016-04-07 10:37:33 -07:00
Chinmay Garde
eaa5e9fb5d 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
John McCutchan
83f0b02a4c Fix Loader::Fetch to use the file path and not the uri. 2016-04-05 12:52:12 -07:00
John McCutchan
9426588891 Merge pull request #2574 from johnmccutchan/fix_canonicalization
Fix uri canonicalization in DartLibraryProviderFiles
2016-04-05 10:24:08 -07:00
Seigo Nonaka
dbcbe1f426 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
424df08728 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
c7526e2aee Allow third-party services to listen to openURL on iOS and support Google Sign-In 2016-03-31 18:15:18 -07:00
Roozbeh Pournader
c9c0359b1d Try putting combining marks in the same font run
Indic combining marks, when combined with a common character such as
a hyphen or a dotted circle, used to get rendered in a different font
due to the greedy algorithm used in determining runs, which resulted
in the base character and the combining mark getting rendered in
separate font runs, resulting in a dotted circle appearing in phrases
such as "100-ാം" (0031 0030 0030 002D 0D3E 0D02).

This change makes combining marks change the font run of the base
character if the base character is supported in the same font as the
combining mark, similar to the support for emoji modifiers and the
combining keycap.

Bug: 25036888
Bug: 24535344
Change-Id: I8e2798e8ecb8efaf723a0fd02c05c6fbdef8b365
2016-03-30 17:48:34 -07:00
Adam Barth
1bdaa49f9a Update code to account for Mozart changes
The layout protocol in Mozart changed. Now we need to pipe a scene version
through the system to the compositor.
2016-03-30 15:13:58 -07:00
Adam Barth
5f5448137a Update CONTRIBUTING.md 2016-03-29 08:39:43 -07:00
Adam Barth
6f83ffe462 Update flutter start to flutter run
These commands are the same, but `run` is the new hotness.
2016-03-28 14:52:35 -07:00
Adam Barth
b9f29d3553 Teach SkyShell about .packages files
SkyShell now supports --packages instead of --package-root.
2016-03-28 12:51:56 -07:00
Adam Barth
4be7fd917a Add a --use-glfw flag to //sky/tools/gn
This flag makes it easier to enable the glfw configuration.

Also, fix an unrelated build error in loader.cc.
2016-03-28 09:58:53 -07:00
Adam Barth
7529b6dbf4 Teach sky_snapshot about .packages
The sky_snapshot tool now understands the --packages command-line flag.

Progress on https://github.com/flutter/flutter/issues/1351
2016-03-28 00:43:42 -07:00
Adam Barth
eea6d8220a Remove one type-related lint
We currently whitelist some types that don't need parameters. Turning on
this lint causes too many lint errors in Atom.
2016-03-26 17:55:30 -07:00
Adam Barth
8a75538417 Sync lint rules with flutter analyze
This patch updates _embedder.yaml to enforce the same set of lints as
`flutter analyze`. We're still not enabling strong mode via this
mechanism, but we might consider that in a later patch.

Related to https://github.com/flutter/flutter/issues/2687
2016-03-26 14:11:24 -07:00
Adam Barth
a1772b12a6 Add GLFW platform to //sky/shell 2016-03-24 17:15:33 -07:00
Adam Barth
574d594600 Add GLFW support to //ui/gl
This patch is the first step towards getting the GLFW configuration up and
running.
2016-03-24 15:59:22 -07:00
Chinmay Garde
515cc528be Be explicit about the sysroot in the toolchain definition instead of inferring the same from active arguments. 2016-03-24 12:10:00 -07:00
Chinmay Garde
7af5e67a23 Remove unused toolchain definitions. 2016-03-23 12:58:37 -07:00
Chinmay Garde
f82da00656 Add a ios_clang_x64 toolchain definition for iOS simulator builds
Earlier, the default arm toolchain was modified depending on whether the use_ios_simulator flag was set. This was causing issues with mutliarch GN builds.
2016-03-23 12:39:23 -07:00
Adam Barth
0bdf46e1d6 Temporary fix for Mac builds 2016-03-23 09:48:02 -07:00
Adam Barth
878baf8442 Merge pull request #2543 from abarth/update_mojo2
Update to mojo 891577b0517de5aeca538d99669787c6dc72412a
2016-03-23 09:40:03 -07:00
Jason Simmons
60c4ae1a72 Merge pull request #2542 from jason-simmons/mojo_dart_dependency
Build fixes for the sky_engine and sky_services Dart packages
2016-03-23 09:39:26 -07:00
Adam Barth
31abaaf5e0 Update to mojo 891577b0517de5aeca538d99669787c6dc72412a 2016-03-23 09:36:02 -07:00