20087 Commits

Author SHA1 Message Date
Elliott Hughes
57e469e6f8 Switch minikin to std::unique_ptr. am: 6261d82459 am: e716bdbd48 am: 2583c5c86b
am: bb3df55710

Change-Id: I56cce90607bce82d337d4da3b4ac5f167c7cc1b4
2016-09-13 01:50:14 +00:00
Elliott Hughes
bb3df55710 Switch minikin to std::unique_ptr. am: 6261d82459 am: e716bdbd48
am: 2583c5c86b

Change-Id: I9c0b81d55e01b08b053a7031a214626351244607
2016-09-13 01:29:45 +00:00
Elliott Hughes
2583c5c86b Switch minikin to std::unique_ptr. am: 6261d82459
am: e716bdbd48

Change-Id: Ie9f9aac239cb29568819de699e4999989a7a11bf
2016-09-13 01:27:07 +00:00
Elliott Hughes
e716bdbd48 Switch minikin to std::unique_ptr.
am: 6261d82459

Change-Id: I91198bdae7aac9638e6ef3553b0eacac021d4f93
2016-09-13 01:24:37 +00:00
mikejurka
12fc138524 use sk_sp<SkData> instead of SkData* (#3021)
(skia change 42943c8aa9c611c18ad0f1a30a27669f3d82239c)
2016-09-12 16:42:52 -07:00
Elliott Hughes
6261d82459 Switch minikin to std::unique_ptr.
Bug: http://b/22403888
Change-Id: I9e18496fcc38ad2e6b922455daa9f2a46778ec55
2016-09-12 15:29:35 -07:00
Chinmay Garde
0fe462df7b Update buildroot revision. (#3020) 2016-09-12 14:54:42 -07:00
Dan Willemsen
ccfc696dfc Rename libicuuc-host/libicui18n-host to libicuuc/libicui18n
These modules can be named the same between the target and host
libraries, which simplifies references to them, particularly in
Soong.

To prevent accidentally loading the system copy of the library,
we still rename the installed name to be libicu*-host.so. But
modules do not need to know that in order to build against them.

Change-Id: Ic38499bb236ace75333a84f23798af023e14cf5f
2016-09-12 14:37:02 -07:00
Dragoș Tiselice
67888c5993 Added drawArc to Canvas. (#2995)
* Added drawArc to Canvas.

Added a way to call SkCanvas::drawArc from Dart. This method is
optimized for the arc case and should be faster that drawing paths.

* Removed implementation details from docs.

* Added more details to the docs.
2016-09-12 13:41:01 -07:00
Adam Barth
c95bb6253f Move font selector into //flutter/runtime (#3018)
This patch makes it easier to share the code with
//flutter/content_handler on Fuchsia.
2016-09-11 22:22:00 -07:00
Adam Barth
93913c2b52 Use mx_process_self() now that this is required (#3017) 2016-09-11 15:54:20 -07:00
Adam Barth
8d102cbe40 Add hello_flutter and make it work on Fuchsia (#3016) 2016-09-11 15:53:48 -07:00
Adam Barth
62053fc957 Wire up font service on Fuchsia (#3015) 2016-09-11 13:34:31 -07:00
Adam Barth
57e98c9b24 Switch JSON parsing from //base to //third_party/rapidjson (#3014)
This removes another //base dependency and will let us reuse this code
on Fuchsia.
2016-09-10 23:33:20 -07:00
Chinmay Garde
a55fa1efb9 Add a —disable-observatory flag to explicitly disable observatory even in non-product modes. (#3012) 2016-09-09 15:54:07 -07:00
Chinmay Garde
23dabd4b70 Remove the enable_observatory instance variable from blink::Settings. (#3011)
We used to be able to toggle observatory via a command line flag. But now, we enable or disable observatory based on the Flutter product mode.

This also allows us to fix an issue where the —non-interactive flags was being hijacked by the Dart initialization logic to enable or disable observatory. However this flag was orignally meant for the standalone runner to launch either to run tests or to run a full graphics enabled window on the desktop.
2016-09-08 16:35:30 -07:00
Chinmay Garde
d3ba01d8a4 Work around a Clang issue where the compiler defines __ARM_FEATURE_CRC32 even though the crc32 instruction is unavailable. (#3010) 2016-09-08 11:01:09 -07:00
Adam Barth
92973b377b Remove Paragraph stubs (#3002)
We can now use the real thing on Fuchsia.
2016-09-07 22:33:56 -07:00
Adam Barth
d7f807c960 Factor runtime initialization into InitRuntime (#3009)
This makes the code easier to share between Fuchsia and stand-alone
Flutter.
2016-09-07 22:19:50 -07:00
Jason Simmons
737afe9b85 Skip rendering frames if the viewport metrics are unknown or empty (#3007) 2016-09-07 16:05:13 -07:00
Jason Simmons
2ef674c92d Roll lib/zip (#3006) 2016-09-07 13:21:48 -07:00
Adam Barth
e54ca9d627 Add asset bundle support on Fuchsia (#3005)
After this patch, Flutter apps on Fuchsia can access their asset
bundles. Unlike other platforms, the asset bundles are stored in memory
rather than in the file system.
2016-09-07 11:17:36 -07:00
Adam Barth
ca17c1cf76 Introduce UnzipperProvider (#3004)
This patch abstracts where the content of the zip file is stored.
Currently, zip files are stored in the file system, but in Fuchsia,
we're going to store them in memory (at least for the time being).
Rather than represent a zip file as a path in the file system, we
instead use an UnzipperProvider, which can create zip::UniqueUnzipper
objects on demand.
2016-09-07 00:22:27 -07:00
Adam Barth
81574be6f0 Switch to //lib/zip (#3003) 2016-09-07 00:07:54 -07:00
Chinmay Garde
40a5ac3f7e Update Dart revision. (#3001)
Pulls in fixes related to incremental builds of Dart sources that end up in the snapshotter.
2016-09-02 14:45:56 -07:00
Chinmay Garde
b114f4465e Remove references to unused GN files and flags. (#2998)
* Remove references to unused GN files and flags.
* Fix Linux build.
2016-09-02 12:31:54 -07:00
James Robinson
0bd09f5015 Update flutter_app template to new .packages filename scheme (#3000)
The name of the generated packages file now includes the target name.
2016-09-02 11:12:13 -07:00
James Robinson
dcb026188a [build] Add new flutter_app GN template for Fuchsia style package management (#2999) 2016-09-01 23:01:58 -07:00
Chinmay Garde
9dc8de122c Skia: Add crc32 sources when SK_CPU_ARM64 is defined. (#2997) 2016-09-01 14:38:33 -07:00
Chinmay Garde
5fa98fc672 Rework the skia/BUILD.gn to be more disciplined about not leaking private config information to dependents. (#2996)
* Move all private config information from skia_config to skia_library_config. This was causing most skia specific defines to be applied to all targets that depended on Skia. These defines were only used by the Skia implementation. Makes the command line invocation for our sources smaller and less confusing.
* Removes defines not present in the current Skia sources.
* Dont add both directories containing SkUserConfig.h from ext and the Skia sources. Depending on the order in which the config directory was specified on the command line, the sources would use a different config.
2016-09-01 12:37:38 -07:00
Jason Simmons
8688206e72 Revert to using SkFontMgr_FontConfigInterface after the latest Skia roll (#2994)
In older versions of Skia, there were two files named SkFontMgr_fontconfig.cpp.
We want to use the one that contains SkFontMgr_FCI.  That file was renamed
to SkFontMgr_FontConfigInterface.cpp

This caused the assert in https://github.com/flutter/flutter/issues/5694
2016-09-01 11:38:50 -07:00
Chinmay Garde
54706afba8 Avoid using [NSArray firstObject] on the Mac platform view. (#2993) 2016-09-01 10:53:10 -07:00
Adam Barth
e281b602d4 Build sky/engine on fuchsia (#2992) 2016-08-31 21:01:07 -07:00
Adam Barth
f102f9c1f5 Remove dead code (#2991)
This code is unused.
2016-08-31 20:44:10 -07:00
Adam Barth
d8d5708f61 Update to new harfbuzz path (#2990) 2016-08-31 20:30:20 -07:00
Chinmay Garde
4157e7d70c Don’t add the unsupported --enable-checked-mode flag to args in SkyActivity. (#2988) 2016-08-31 09:55:03 -07:00
Chinmay Garde
b03f0e43ba Setup SKP tracing base path for the Mac desktop platform. (#2984)
Replicates iOS behavior of placing trace files in the documents directory.
2016-08-31 09:50:04 -07:00
Chinmay Garde
0f87eabd3c Remove support for the —enable-checked-mode flag from the engine. (#2987) 2016-08-31 09:46:05 -07:00
Chinmay Garde
cdff6fa306 Respect the —enable-checked-mode flag when not running precompiled code instead of defaulting it on. (#2986) 2016-08-30 16:25:51 -07:00
Chinmay Garde
71dfef76fd Add trace event slices for the duration in which the engine produces a pipeline item. (#2985)
* Add trace event slices for the duration in which the engine produces a pipeline item.

* Trace the entire lifetime of an item in the pipeline.
2016-08-30 15:44:56 -07:00
Chinmay Garde
94c5be8e6d When rasterizing to a recorder backed canvas for SKP tracing, don’t attempt to update the raster cache. (#2983)
We could get into a situation where the second time we rasterize a picture for an SKP, the raster cache detects that the same picture is being repeated in subsequent onscreen frames and then proceeds to rasterize the contents to an offscreen texture. This not only causes an unnecessary cache entry, but also shows the cached image in the final SKP trace (which is not what was originally displayed on screen).
2016-08-30 14:52:39 -07:00
Chinmay Garde
ddc75b854b Force anti-aliasing on clipRRect calls. (#2982)
Per recommendation from the Skia team. Benefits from optimizations applied in Skia for Chrome.
2016-08-30 14:11:21 -07:00
Chinmay Garde
72a8e2f19e Log trace file path when capturing an SKP in rasterizer_direct. (#2981) 2016-08-30 11:10:28 -07:00
Jason Simmons
39d071b94e Do not dereference the rasterizer on the UI thread in the animator (#2980)
The rasterizer may have been deleted on the GPU thread before Animator::Render
runs on the UI thread
2016-08-30 10:02:44 -07:00
Chinmay Garde
50b15874bd Fix Mac build error due to -Wsign-compare. (#2979) 2016-08-29 17:14:20 -07:00
Chinmay Garde
f9c86cddb8 Add a temporary engine systrace logger till the Dart timeline learns how to log to systrace. (#2978) 2016-08-29 17:03:59 -07:00
Jason Simmons
ce36db67ec Ensure that the rasterizer is shut down before the PlatformView is deleted (#2977)
Noticed this while looking at https://github.com/flutter/flutter/issues/5594
2016-08-29 16:59:02 -07:00
Chinmay Garde
357034d1df Bump up the thread priorities of the GPU, UI and IO threads on Android. (#2976) 2016-08-29 16:44:30 -07:00
Adam Barth
67d7caeb9f Attempt to fix build by adding factory (#2975) 2016-08-28 23:45:05 -07:00
Adam Barth
ef38a88cb3 Update Skia (#2974) 2016-08-28 21:49:16 -07:00