53 Commits

Author SHA1 Message Date
Ian Hickson
e99cbb038e Tool for managing licenses. (#2822) 2016-07-26 13:10:57 -07:00
Chinmay Garde
b34d69becb Disable chattly log in SimpleFontData and stop reading VDMX metrics for fonts on iOS/OSX. (#2824) 2016-07-26 12:51:08 -07:00
Adam Barth
7c87227702 Update Skia (#2825) 2016-07-26 12:33:37 -07:00
Chinmay Garde
5ed6b6ec26 Minor update to the name of the argument used to find the fallback font. (#2808) 2016-07-20 11:49:37 -07:00
Jason Simmons
6e92a5e34d Remove unused code in FontCacheSkia (#2805) 2016-07-19 11:02:53 -07:00
Chinmay Garde
f738deb0ab Account for surrogate pairs when constructing the string used to pass (#2803)
to CoreText for font fallback selection.
2016-07-18 15:02:40 -07:00
Chinmay Garde
c876974381 Attempt font fallback resolution using CoreText on iOS. (#2800) 2016-07-18 14:58:23 -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
4b73a8a048 Roll base (#2761)
Update base, gn, and their clients.
2016-06-15 14:52:53 -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
608e34dbf6 Fix build 2016-05-23 14:36:08 -07:00
Adam Barth
a126207c6e Update Skia (#2704) 2016-05-23 13:48:18 -07:00
Adam Barth
57c02d4495 Decode images on a background thread (#2665)
We were all set up for this but for some reason we were actually decoding the
images on the main thread.

Fixes #3803
2016-05-09 12:54:52 -07:00
Jason Simmons
c0a5c08cd5 Roll Skia (#2658) 2016-05-06 12:04:57 -07:00
Adam Barth
625e937442 Update Skia (#2626) 2016-04-27 14:59:06 -07:00
Jason Simmons
b478563ea6 Support ahead-of-time compilation on Android in the 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
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
Adam Barth
3f7d5ef6f8 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
baaceb79a9 Update Skia
Fixes https://github.com/flutter/flutter/issues/2670
2016-03-22 09:28:46 -07:00
Adam Barth
e301cef648 Update Skia
This required a bunch of changes because of the new sk_sp type Skia has
introduced into their API.
2016-03-21 14:59:49 -07:00
Adam Barth
d2ab5b4422 Update Skia 2016-02-25 10:47:09 -08:00
James Robinson
1a0f9670b0 Enable building for Android using clang for target builds 2016-02-19 14:07:57 -08:00
Jason Simmons
0b8038fa1e Support loading of custom fonts
The FLX will contain a font manifest JSON file that maps font family names
to custom font assets.  Flutter will provide a FontSelector that loads
fonts on demand and caches typeface and style data.
2016-02-17 12:07:22 -08:00
Adam Barth
5908970756 Update Skia version 2016-01-27 12:21:26 -08:00
Adam Barth
b4377c93dd Remove RuntimeEnabledFeatures
This complex machinery made sense for Blink, which has hundreds of
developers. In our case, we're just moving around two bools. We can do
that in a much simpler way.
2015-12-29 22:27:18 -08:00
Adam Barth
96e66145e9 Merge pull request #2206 from abarth/rm_dead_platform_code
Remove dead code from engine/platform
2015-12-29 22:01:19 -08:00
Adam Barth
c2a5c65572 Remove dead code from engine/platform
Highlights include:
 - A Base64 encoder/decoder
 - A JSON encoder/decoder
 - A JPEG and a PNG encoder
2015-12-29 21:39:16 -08:00
Adam Barth
0633830c55 Remove the last remnants of CSS
This patch also lets us remove FontFamilyNames, which is one of two
remaining clients of jinja2.
2015-12-29 21:20:10 -08:00
Jason Simmons
784fe3dd0b Revert to libjpeg_turbo
We had switched to libjpeg, but libjpeg was failing to decode images when
built with the defines in our .gn files
2015-12-14 16:48:49 -08:00
Adam Barth
9c3aac7c2f Remove //url
We don't use this anymore.
2015-12-11 11:20:23 -08:00
Adam Barth
a14d4ed590 Remove OpenTypeSantizer and brotli
We don't need OpenTypeSantizer or brotli because we don't support loading fonts
over the network. Instead, fonts will need to be packaged inside the Flutter
asset bundle.
2015-12-11 10:32:40 -08:00
Adam Barth
fb374a9f5a Remove unused code
We don't use yasm, libjpeg_turbo, or mojo's devtools.
2015-12-11 10:18:50 -08:00
Jason Simmons
c765df18b4 Do not delete the DrainJob within the DrainJob::Start callback
DrainDataPipeInBackground posts a callback to DrainJob::Start, which
constructs a DataPipeDrainer.  The DataPipeDrainer's constructor may
call OnDataComplete.  If this happens, it is unsafe to delete the
DrainJob while the callback is still running.
2015-11-11 15:52:18 -08:00
Adam Barth
39647f8e4e Remove dependency on gperf
We don't need the CSS color names anymore.
2015-11-01 12:49:27 -08:00
Adam Barth
3327356aee Roll Skia 2015-10-26 10:36:00 -07:00
Adam Barth
01c14ff74b Remove a bunch of dead code
I left this code along in my uber patch to remove the DOM and CSS, but it's
just as dead. Also, move lone files out of dead directories into more sensible
places.
2015-10-24 16:09:21 -07:00
Adam Barth
a5768f2718 Remove the DOM and CSS
We don't use the DOM or CSS anymore. Instead, we work directly with the render
tree.
2015-10-24 00:26:24 -07:00
Adam Barth
edb7d79c86 Update includes to account for network service move 2015-10-19 10:30:24 -07:00
Adam Barth
1888eacb75 Drain data pipe for images no a background thread
Instead of joining the UI thread to copy data from the network into a buffer,
we now drain the data pipe for image decoding on a background thread.
2015-10-09 07:25:54 -07:00
Adam Barth
1946924b16 Introduce IO thread for background tasks
Currently we run some tasks on the UI thread that shouldn't block the frame,
such as decoding images. This patch introduces a background thread on which we
can run these tasks.
2015-10-09 06:37:57 -07:00
Chinmay Garde
31f7fa8ddd Update skia to latest revision 2015-08-26 15:28:05 -07:00
James Robinson
c8eff5e44f Update to mojo d259eb58aa59e14a13d5e0dc3984b855b475ba09
This updates to mojo commit d259eb58aa59 and limits the roll script to
only pull in the parts of //mojo that are currently being used. More
stuff will be dropped in the future.
2015-08-25 14:56:25 -07:00
Chinmay Garde
f19071f5f9 Fix armv7 build errors in sky/engine 2015-08-17 14:12:41 -07:00
Eric Seidel
135ce7319f Make fonts not awful on iOS
This code was written from scratch for Sky by copying what
linux did, however that doesn't match with the expectations
of the surrounding code.  Instead here I just copied what Blink
was doing around this time by looking at:
https://blink.lc/blink/tree/Source/platform/fonts/mac/FontPlatformDataMac.mm?id=f0ab9794a9d1240ce5a57e510fdb82dbc8337906

Blink has since diverged from this codepath, but this at least
makes our FontPlatformData match how the rest of the mac code
expects it to operate.  This is all way more complicated than
we need.

@chinmaygarde
2015-07-30 14:17:22 -07:00
Adam Barth
64ecf6214f Add a flag to sky_viewer to enable checked mode
This flag will let clients who use release builds enable checked mode.

Fixes #22
2015-07-29 19:05:44 -07:00
Adam Barth
edf9db0d4e Remove Screen.idl and associated code 2015-07-25 19:04:17 -07:00
Eric Seidel
244cebd496 Roll Skia to the latest revision to pick up drawAtlas fix
R=chinmaygarde@google.com
2015-07-24 10:59:20 -07:00
Eric Seidel
68e5c9bebe Fix 2 crashers found by Hixie's fuzzer.
The first one is that we weren't setting up a
FontCachePurgePreventer during drawText.  It's not clear
that this is the correct fix, since Blink doesn't have
this FontCachePurgePreventer here either, but it's also
possible that they would hit this same ASSERT and just
not care (since ASSERTs are disabled on clusterfuzz).

The second fix is making ExceptionState actually track
whether it has thrown an exception or not. The c++ code
was depending on this working in order to return early
from dom functions and not crash!

R=abarth@google.com
2015-07-21 16:29:04 -07:00
Chinmay Garde
6ccb1e6b0c sky/engine and sky/services updates for Mac target 2015-07-20 17:50:19 -07:00
Adam Barth
798a88d9e2 Update Sky code to account for changes in Chromium
- Add missing dependencies caught by gn's new stricter checker
- Update opentype code to use new OTS API. This code is updated from HEAD
  Blink.
- Add base dependency to wtf to avoid redefining marcos from base/macros.h
- Update callers of various base string utility functions to use base
  namespace.
2015-07-16 22:14:27 -07:00