2011 Commits

Author SHA1 Message Date
Jason Simmons
6daf9aeefd Canvas.drawShadow API based on SkShadowUtils::drawShadow (flutter/engine#3486) 2017-03-20 14:17:47 -07:00
Chinmay Garde
7143d8d1d9 Implementations of platform agnostic portions of FML. (flutter/engine#3487) 2017-03-20 13:41:41 -07:00
Adam Barth
401710fd27 Conform to platform protocol (flutter/engine#3485)
The Android and iOS versions of this function had diverged. This patch
makes the iOS version match the Android version (and what the framework
expects).

Fixes https://github.com/flutter/flutter/issues/8878
2017-03-18 13:35:43 -07:00
Mikkel Nygaard Ravn
ac754da610 Remove old flutter messaging API (flutter/engine#3482)
Breaking change: removed facilities for JSON and string messaging from FlutterView/FlutterViewController, leaving only binary messaging there. All other use of flutter communication now goes through FlutterMessageChannel and FlutterMethodChannels. Retained use of String and JSON codecs for now.

Companion flutter PR: flutter/flutter#8837
2017-03-17 09:04:59 +01:00
Chris Bracken
c7a35cdc80 dart_runtime_hooks: revert to syslog() call (flutter/engine#3484)
Fixes buildbot error use of undeclared identifier 'asl_log_message',
which I'm unable to repro locally.
2017-03-16 19:09:39 -07:00
Chris Bracken
b4f50b27ce Perform all iOS logging through ASL (flutter/engine#3481)
* Perform all iOS logging through ASL

As of iOS 10, ASL is deprecated and replaced with os_log. ASL calls
continue to result in logging but as of iOS 10.3, only ASL_LOG_NOTICE
level and above are logged.

This change partially reverts d67972d649157582358876f90a99577cb3708e82,
adding back stdout and stderr redirection, which resulted in loss of
some direct writes to stdout that were necessary for debugging.

This change replaces the direct use of syslog with ASL on iOS, which
Apple has stated will continue to log on iOS >= 10. This eliminates the
need for the previous fwd-declaration of syslog.
2017-03-16 18:50:33 -07:00
Brian Osman
45b19efda8 Do legacy image decoding for now (flutter/engine#3480) 2017-03-15 14:31:05 -07:00
Jason Simmons
0ca8d88853 Update the PhysicalModelLayer child paint bounds to account for the shadow (flutter/engine#3478)
See https://github.com/flutter/flutter/issues/8635
2017-03-15 14:14:15 -07:00
Chris Bracken
d67972d649 Eliminate use of ASL on iOS, --no-redirect-to-syslog flag (flutter/engine#3479)
ASL is deprecated and replaced by os_log() on iOS. As of iOS 10.3,
calling this function breaks our logging altogether. os_log isn't
available pre-iOS 10.0. Rather than implement version checks and
conditional logic, this change eliminates the existing redirection
altogether. All engine code should be logging via the syslog redirection
implemented in Logger_PrintString in dart_runtime_hooks.cc.

Since stdio redirection is eliminated, we eliminate the flag that
controls whether such redirection is enabled.
2017-03-15 13:35:53 -07:00
Chinmay Garde
02e781f347 Wire up memory warning notifications on iOS. (flutter/engine#3477) 2017-03-14 17:12:29 -07:00
Jason Simmons
b2715565a0 Send an event to signal memory pressure (flutter/engine#3475)
See https://github.com/flutter/flutter/issues/7561
2017-03-14 15:42:30 -07:00
Michael Goderbauer
76d4e76b08 re-introduce //flutter/lib/snapshot:generate_snapshot_bin target (flutter/engine#3474) 2017-03-14 10:53:30 -07:00
Adam Barth
51af4a7f08 Introduce OffsetBase.isFinite (flutter/engine#3472)
This property will eventually replace OffsetBase.isInfinite.

See https://github.com/flutter/flutter/issues/4301
2017-03-14 10:26:31 -07:00
Michael Goderbauer
b8c6df01a4 Remove sky_snapshot sources (flutter/engine#3471)
* Remove sky_snapshot sources

* update licenses
2017-03-14 10:24:17 -07:00
Jakob Andersen
7fbb663617 Fix pod name in Flutter.podspec. (flutter/engine#3473)
Names matter, and I apparently forgot to test after adding ' Engine' to
the name. Names can't contain spaces, and must match the filename.
2017-03-14 15:40:59 +01:00
Mikkel Nygaard Ravn
6afc504feb Flutter channels for iOS (flutter/engine#3470)
Flutter channels now also supported on iOS. Use FlutterMessageChannel or FlutterMethodChannel with binary/string/json/standard codecs.
2017-03-13 23:57:46 +01:00
Chinmay Garde
e3861ff767 Remove deprecated SkyApplication and SkyActivity. (flutter/engine#3464) 2017-03-08 10:47:53 -08:00
Jakob Andersen
fb41fe688d Add podspec to Flutter iOS framework. (flutter/engine#3467)
* Add podspec to Flutter iOS framework.

Flutter iOS apps are already pod-enabled, so we might as well turn the
engine framework into a pod, so we don't have to manually copy the
current Flutter.framework into the app directory on every build, but
rather let Cocoapods wire things up for us.

For that to happen, we need a pod spec for Flutter.framework. This spec
will not be published, but rather downloaded as part of the engine
artifacts, and the app's Podfile will have a local path dependency on
it.

* Update licenses_golden...
2017-03-08 09:00:59 +01:00
Chinmay Garde
aac27e52b3 Use software rendering on iOS simulators without needing a flag. (flutter/engine#3465) 2017-03-06 14:49:25 -08:00
Michael Goderbauer
2757bf1dac whitespace fix (flutter/engine#3463) 2017-03-06 13:14:56 -08:00
Mikkel Nygaard Ravn
b3b9d628ba Remove usage of JDK7 features not available until Android SDK 19+ (flutter/engine#3462) 2017-03-06 13:22:29 +01:00
Michael Goderbauer
f12729bb6f Roll Dart to 890dff146ac4733018c059b36bc4d67c45da3232 (flutter/engine#3461)
* Roll Dart to 890dff146ac4733018c059b36bc4d67c45da3232

* uddate licenses
2017-03-03 19:30:13 -08:00
mikejurka
f6a5f79902 Workaround for surface size on Fuchsia/Magma (flutter/engine#3458)
Allow surface size to be passed by caller
temporarily until we get a proper Display API
2017-03-01 21:08:06 -08:00
Jason Simmons
ce364521c0 Skip license processing for top-level source directories that are unchanged (flutter/engine#3437)
See https://github.com/flutter/flutter/issues/8106
2017-03-01 10:36:51 -08:00
Mikkel Nygaard Ravn
895fce4709 FlutterXxxChannel concepts added to support Flutter/Android interop (flutter/engine#3446)
New concepts: FlutterMessageChannel (basic message send/receive superseding existing FlutterView methods), FlutterMethodChannel (method invocation and event streams), pluggable codecs for messages and method calls: unencoded binary, string, json, and 'standard' flutter binary encoding.
2017-03-01 13:54:32 +01:00
Jason Simmons
5976337c94 Do a glFlush after creating textures on the IO thread before they are used by the GPU thread (flutter/engine#3456)
Fixes https://github.com/flutter/flutter/issues/8431
2017-02-28 15:50:02 -08:00
Michael Goderbauer
40c66c6b17 Roll-forward #3454 and roll tonic (flutter/engine#3455)
Bug causing roll-back #3454 has been resolved upstream in tonic.
2017-02-28 15:25:28 -08:00
Michael Goderbauer
50e15ad8ad Revert "--print-deps now returns resolved paths (#3449)" (flutter/engine#3454)
This reverts commit 6655e40784210f58dae010bb5d2c980c30c37d24.

Reason: broke hot reload when using "package:" style imports for
sources within the same project.
2017-02-28 10:54:00 -08:00
Jason Simmons
6b00d896c4 Allow translucent background colors in PhysicalModel (flutter/engine#3452)
Set the TransparentOccluder shadow flag if the color is not opaque
2017-02-27 16:27:44 -08:00
Jason Simmons
5683b4d5fc Disable the cache on the GrContext used for decoding images (flutter/engine#3451)
Fixes https://github.com/flutter/flutter/issues/8429
2017-02-27 16:21:21 -08:00
Michael Goderbauer
396912456c better document sky_snapshot (flutter/engine#3450) 2017-02-27 11:27:36 -08:00
Michael Goderbauer
6655e40784 --print-deps now returns resolved paths (flutter/engine#3449) 2017-02-27 10:27:24 -08:00
Chris Bracken
f2594cae0f Apply iOS status bar padding to flutter views (flutter/engine#3447)
This change eliminates two previous assumptions:
1. If a Flutter view is embedded in a parent view, that the parent view
   controller would apply any status bar padding necessary.
2. That we should not apply padding unless the flutter view is
   fullscreen.

A simple case where the first assumption fails to hold is a Flutter view
embedded in a UINavigationController with a hidden toolbar. A simple
case where the second assumption fails to hold is a view in a window
whose top overlaps the status bar but isn't fullscreen.
2017-02-24 13:11:10 -08:00
Jason Simmons
2e755736a5 Return an error to Dart when spawning an isolate with an unsupported URI (flutter/engine#3443)
Fixes https://github.com/flutter/flutter/issues/8084
2017-02-24 09:44:36 -08:00
Chinmay Garde
b016356c1e Roll Skia revision to 3f81f3703a68755c88f5cc4a87728b98f34c4cd4 (flutter/engine#3438) 2017-02-23 17:58:05 -08:00
Jason Simmons
339ee9d8ea Adapt the physical model layer for Fuchsia (flutter/engine#3441) 2017-02-23 16:27:33 -08:00
Chinmay Garde
53b2940c6d Remove rarely used GLConnection stuff in flow. (flutter/engine#3440)
I had added this initially as a means of making it easier to deal with OpenGL directly in Flow. However, we are moving away from dealing with the client rendering APIs directly. Instead, delegating everything to Skia. Besides, we only ever used this to log the GPU description in case of context setup failures. This has not proved to be useful so far. Also, having this in place is making it difficult to remove all dependencies on GL in Shell.
2017-02-23 16:02:53 -08:00
Chinmay Garde
0110abf008 Allow plugging in a software backend for rendering in the shell. (flutter/engine#3404) 2017-02-22 15:40:23 -08:00
Dan Rubel
92767a3d58 modify RunFrom<X> methods to return error code rather than call exit (flutter/engine#3428) 2017-02-21 11:31:27 -05:00
Jason Simmons
3e7ecdc1e7 Physical model layer that can draw shadows for a Material widget (flutter/engine#3424) 2017-02-16 17:30:57 -08:00
Chinmay Garde
7e31feadc0 Remove texture image. (flutter/engine#3434) 2017-02-16 16:26:02 -08:00
Chinmay Garde
b22362be89 Update skia to 1c8e82b72bfeb1a02297688cf082c365b62705f7 (flutter/engine#3433) 2017-02-16 15:40:11 -08:00
Ryan Macnak
f03daa15b9 Roll Dart to 1ed4c27c01de6680766593b88a531ef86883a117. (flutter/engine#3431) 2017-02-16 13:26:31 -08:00
Dan Rubel
011f142515 add kernel support (flutter/engine#3369) 2017-02-16 10:11:38 -05:00
Jason Simmons
ed07f34bce Transfer ownership of the buffer in the image decoder bitmap fallback path (flutter/engine#3426)
Previously we had passed a local generator to flow::BitmapImageCreate /
SkImage::MakeFromGenerator, which takes ownership of the generator.
That generator in turn referenced an SkData backed by a local vector.
The result was an SkImage backed by a deleted buffer.
2017-02-15 15:37:39 -08:00
xster
ffc4165cd5 Fix multi-font ttc rendering for iOS (flutter/engine#3418)
Merged iOS and Android font fallback mechanisms and push font discovery logic into skia
2017-02-14 23:54:39 -08:00
mattsarett
f8f53719d6 Use SkImage::makeShader() in place of bitmap workaround (flutter/engine#3419) 2017-02-14 14:35:12 -08:00
Chinmay Garde
9dfad95808 Use updated calls to SkColorSpace in flutter/vulkan. (flutter/engine#3416) 2017-02-13 18:23:32 -08:00
Ryan Macnak
5b4dae1428 Roll Dart VM to 9a7a04525f638b57a746706c3575df66cf02bc2d. (flutter/engine#3413)
Picks up changes to include inlined frames and line numbers in AOT stack traces.
2017-02-13 13:34:12 -08:00
Chinmay Garde
42d77d6159 Revert ShadowMaskFilter use and roll Skia to 246a3c269d8dc91a47ff27f7b71508bf9e74edf5. (flutter/engine#3409) 2017-02-10 16:01:36 -08:00