9718 Commits

Author SHA1 Message Date
skia-flutter-autoroll
a9180ca20e
Roll src/third_party/skia/ 6b043cb9c..643ab1bf5 (3 commits; 3 trivial rolls) (#5097)
Auto-roller completed checks. Merging.
2018-04-26 04:35:21 -04:00
skia-flutter-autoroll
82d461049c
Roll src/third_party/skia/ 1366282bc..6b043cb9c (2 commits) (#5095)
Auto-roller completed checks. Merging.
2018-04-26 01:05:21 -04:00
skia-flutter-autoroll
fb4926e65e
Roll src/third_party/skia/ 580aee2fa..1366282bc (2 commits) (#5094)
Auto-roller completed checks. Merging.
2018-04-25 21:36:21 -04:00
Dan Field
c249b7026f Path metrics/getBounds/combinations again (#4957)
* add path measure

* fix typo

* getBound and addPathWithMatrix

* Add myself to Authors, add PathOps

* fix linting issues

* update licenses_flutter to add new files

* Use matrix4 instead of matrix3 for consistency/interop

* put pubspec back

* fix bug in getSegment

* fix typo

* Add return value for PathOp

* refactoring from review

* refactoring from review - still TBD on computeMetrics()

* add doc

* lint issue

* fix computeMetrics, add Path.from

* add missing wireup for clone

* change PathMetrics to iterable, fix bug with angle on Tangent

* prefer std::make_unique

* cleanup docs

* add path measure

* fix typo

* getBound and addPathWithMatrix

* Add myself to Authors, add PathOps

* fix linting issues

* update licenses_flutter to add new files

* Use matrix4 instead of matrix3 for consistency/interop

* put pubspec back

* fix bug in getSegment

* fix typo

* Add return value for PathOp

* refactoring from review

* refactoring from review - still TBD on computeMetrics()

* add doc

* lint issue

* fix computeMetrics, add Path.from

* add missing wireup for clone

* change PathMetrics to iterable, fix bug with angle on Tangent

* prefer std::make_unique

* cleanup docs

* fix iterator bug

* remove unnecessary clone for computeMetrics

* fix some doc issues

* fix PathMeasure iterator, extendWithPath, isClosed, and pubspec.lock

* get rid of orElse; use StateException

* StateError, not StateException

* doc improvements and nits

* add unit tests, fix bugs found during testing

* fix two uncommited doc changes

* one more

* change sign of tangent angle, update docs

* update unit tests for inverted angle

* update tangent to include vector

* Doc fixes

* Fix MSVC compilation and unit test
2018-04-25 15:35:01 -07:00
skia-flutter-autoroll
df255b828c
Roll src/third_party/skia/ de5cffbc4..580aee2fa (16 commits) (#5092)
Auto-roller completed checks. Merging.
2018-04-25 18:06:21 -04:00
Ben Konyi
e44e1b49f3
Initial plugin support for background downloads + content fetching (#5082)
* Added handleEventsForBackgroundURLSession and
performFetchWithCompletionHandler handlers in FlutterAppDelegate to
allow for plugins to perform background downloads and fetch small
amounts of data opportunistically.
2018-04-25 13:35:01 -07:00
Ryan Macnak
78f8a0f45a
[fuchsia] Changes for running Dart 2 on flutter_runner. (#5080)
- Remove assumption that we're in Dart 2 mode only if there's a platform kernel.
 - Load core snapshots from the package instead of linking them in.
2018-04-25 13:31:13 -07:00
skia-flutter-autoroll
cbec56a3de
Roll src/third_party/skia/ 77e95f706..de5cffbc4 (14 commits) (#5090)
Auto-roller completed checks. Merging.
2018-04-25 14:37:21 -04:00
Jason Simmons
8da9398ed3
Throw an exception if a secondary isolate tries to send a platform message (#5069)
Platform messages are only support in the UI isolate.  Secondary isolates
do not have a window that can receive incoming messages, and outgoing messages
are not tagged with a destination isolate and thus will always be dispatched
to the UI isolate.

Fixes https://github.com/flutter/flutter/issues/16846
2018-04-25 10:29:20 -07:00
Michael Goderbauer
cb2092b3fd
Roll Dart to 8d4074175fb95cd4da810b4bf652a956449bac37 (#5089) 2018-04-25 10:03:19 -07:00
skia-flutter-autoroll
cc72fc1c30
Roll src/third_party/skia/ ec4e7358b..77e95f706 (1 commit) (#5088)
Auto-roller completed checks. Merging.
2018-04-25 11:03:43 -04:00
skia-flutter-autoroll
ee2532f2d2
Roll src/third_party/skia/ e1c37a7b8..ec4e7358b (1 commit) (#5087)
Auto-roller completed checks. Merging.
2018-04-25 10:18:17 -04:00
skia-flutter-autoroll
dd34fd1787
Roll src/third_party/skia/ 058f2e6ed..e1c37a7b8 (4 commits) (#5086)
Auto-roller completed checks. Merging.
2018-04-25 08:18:06 -04:00
Michael Goderbauer
b08b15290e
Revert "Roll dart to 29d6e963702fcbb0ed0d5ca67d6b5f977ac0c328 (#5083)" (#5085)
This reverts commit 9859af123eb383ade52208a9db58ac39db84bfc2.
2018-04-24 18:49:40 -07:00
Michael Goderbauer
9859af123e
Roll dart to 29d6e963702fcbb0ed0d5ca67d6b5f977ac0c328 (#5083)
Picks up a fix for math on 32bit ARM devices running iOS, required for https://github.com/flutter/flutter/issues/2089.
2018-04-24 18:06:53 -07:00
Chinmay Garde
6a93ef1c70
Call SkGraphics::Init earlier on Fuchsia. (#5079) 2018-04-24 16:02:54 -07:00
Chinmay Garde
f1234eb077
Add disabled failing test for floating point errors on matrix decomposition. (#5076) 2018-04-24 16:02:38 -07:00
Jason Simmons
ac682632d7
Hold a global reference to the AssetManager Java object backing the APKAssetProvider (#5078)
Fixes https://github.com/flutter/flutter/issues/16222
2018-04-24 15:50:52 -07:00
skia-flutter-autoroll
0e95bb2c4a
Roll src/third_party/skia/ 2d2c1e32c..058f2e6ed (35 commits; 1 trivial rolls) (#5077)
Auto-roller completed checks. Merging.
2018-04-24 18:02:07 -04:00
skia-flutter-autoroll
3e20562a1d
Roll src/third_party/skia/ 5209d7fce..2d2c1e32c (42 commits; 1 trivial rolls) (#5070)
Auto-roller completed checks. Merging.
2018-04-24 14:35:06 -04:00
Ryan Macnak
a20fd83039
[fuchsia] Remove dead package file generation from core snapshots. (#5071) 2018-04-24 09:33:52 -07:00
Chinmay Garde
79b9ffb14b
Fixup Fuchsia content handler post shell refactor. (#5072) 2018-04-23 20:16:01 -07:00
Yegor
ec611470b5
replace nextNodeId/previousNodeId with hitTestPosition (#5066) 2018-04-23 16:16:17 -07:00
Jason Simmons
2970c099f7
Use the default microtask scheduler on all isolates except the UI isolate (#5068)
See https://github.com/flutter/flutter/issues/16846
2018-04-23 15:02:19 -07:00
Yegor
96af3b29e7
ios: remove geometric order; it will be supplied by framework (#4937) 2018-04-23 13:17:25 -07:00
Chinmay Garde
3b84a47024
Apply unaddressed comments in pull/5062 (#5065) 2018-04-23 12:16:15 -07:00
skia-flutter-autoroll
29816a6607 Roll src/third_party/skia/ 3d0e8507f..5209d7fce (14 commits) (#5061)
https://skia.googlesource.com/skia.git/+log/3d0e8507face..5209d7fce35f

$ git log 3d0e8507f..5209d7fce --date=short --no-merges --format='%ad %ae %s'
2018-04-20 bsalomon Fix starting location in GrRTC::drawOval when converting to GrShape
2018-04-20 bsalomon Analytic dashing of circles with single on/off intervals and butt caps.
2018-04-20 brianosman Fix argument names and documentation for SkMatrix44::set3x3()
2018-04-18 enne Reland "Add stub gpu workaround generators"
2018-04-20 robertphillips Add ability to dump opList info at flush-time
2018-04-20 benjaminwagner Fix Housekeeper-PerCommit-InfraTests
2018-04-20 scroggo Reduce threads used for DNG decodes on Android
2018-04-19 benjaminwagner Add SwiftShader Build jobs.
2018-04-19 benjaminwagner Add cmake_linux asset.
2018-04-20 egdaniel Add discard check when deciding if we should execute op list or not.
2018-04-20 robertphillips Remove another writePixels instance
2018-04-18 csmartdalton ccpr: Don't solve for cubic roots that are out of range
2018-04-19 benjaminwagner Add SwiftShader to DEPS.
2018-04-19 csmartdalton ccpr: Fix flatness and triangle-ness detection for conics

Created with:
  roll-dep src/third_party/skia
2018-04-23 10:26:06 -04:00
Chinmay Garde
4691a0b23e
Import intrusively ref counted shared pointers into FML. (#5062) 2018-04-21 20:50:03 -07:00
Todd Volkert
cb3376c5de
Support different encodings in Image.toByteData() (#5060)
Fixes https://github.com/flutter/flutter/issues/16635
2018-04-20 19:47:27 -07:00
Jason Simmons
232060828a Fix syntax error in AccessibilityBridge (#5059) 2018-04-20 13:54:27 -07:00
Jason Simmons
944b7dceae
Prevent multiple calls to FlutterMain.startInitialization (#5058)
See https://github.com/flutter/flutter/issues/16748
and https://github.com/flutter/flutter/issues/16456
2018-04-20 11:38:10 -07:00
Michael Goderbauer
995633ef49
Add SemanticsFlag.isHidden (#5052) 2018-04-20 10:37:02 -07:00
skia-flutter-autoroll
17e3e6961e Roll src/third_party/skia/ c4e384e5a..3d0e8507f (18 commits) (#5056)
https://skia.googlesource.com/skia.git/+log/c4e384e5ad85..3d0e8507face

$ git log c4e384e5a..3d0e8507f --date=short --no-merges --format='%ad %ae %s'
2018-04-20 robertphillips Prevent matrix stack from being corrupted if a rotated image filter is clipped out
2018-04-20 caryclark guard against NaN in path is rect
2018-04-19 fmalita Fix use-of-uninitialized-value in SkPictureShader::onMakeContext
2018-04-19 benjaminwagner Disable retries for Build, CT, and Calmbench tasks.
2018-04-20 angle-skia-autoroll Roll third_party/externals/angle2/ b0f917fa6..3ec304dba (1 commit)
2018-04-20 angle-skia-autoroll Roll third_party/externals/angle2/ e24032a2c..b0f917fa6 (3 commits)
2018-04-19 csmartdalton ccpr: Don't preempt the convex path renderer
2018-04-19 benjaminwagner Add more angle_gl_* configs for NVIDIA.
2018-04-19 jvanverth Remove ambient clamp hack for analytic shadows.
2018-04-19 brianosman Remove duplicate predefined configs
2018-04-18 csmartdalton ccpr: Clean up GrCCGeometry
2018-04-19 herb Adding pinning to the strike cache
2018-04-19 bsalomon Fix double counting of coverage in analytic round capped stroked circles.
2018-04-11 bungeman Document minimum OS requirements.
2018-04-19 angle-skia-autoroll Roll third_party/externals/angle2/ eeec3b14c..e24032a2c (2 commits)
2018-04-18 robertphillips rm SkRRectsGaussianEdgeMaskFilter
2018-04-19 borenet [skcms] Add version.sha1
2018-04-19 mtklein crash rather than overflow in SkTDArray

Created with:
  roll-dep src/third_party/skia
2018-04-20 13:16:21 -04:00
Chinmay Garde
09d05a3891
Prepare and run child isolates on a VM managed (i.e. no UI) task runner. (#5054) 2018-04-19 19:17:11 -07:00
Jason Simmons
adee351424
Throw an error or return null if FlutterView.getBitmap fails (#5051)
getBitmap had been doing FXL_CHECK assertions to check memory allocation
failures and other errors.  getBitmap will now return null to the caller
instead.
(The VM may throw OutOfMemoryError or other exceptions if JNI APIs fail)

Fixes https://github.com/flutter/flutter/issues/16750
2018-04-19 16:12:22 -07:00
Jason Simmons
637e921d6f Use the raster cache when rendering screenshots as bitmaps (#5050)
This matches the behavior from before the shell refactoring.

Fixes https://github.com/flutter/flutter/issues/16754
2018-04-19 13:32:00 -07:00
Chinmay Garde
a23fa923c2
Look for an assets path specification in the Info.plist. (#5049) 2018-04-19 12:01:46 -07:00
Jonah Williams
3405e23a32
AccessibilityBridge support for edge triggered semantics (iOS + Android) (#4901)
AccessibilityBridge support for edge triggered semantics (iOS + Android)
2018-04-19 11:14:47 -07:00
Ravi Mistry
8e6c24f404 Roll src/third_party/skia/ 1ccaa6e05..c4e384e5a (28 commits) (#5047)
https://skia.googlesource.com/skia.git/+log/1ccaa6e05629..c4e384e5ad85

$ git log 1ccaa6e05..c4e384e5a --date=short --no-merges --format='%ad %ae %s'
2018-04-19 reed check if we fail to eval the conic in pathmeasure
2018-04-19 bungeman Remove unused parameters from internalGetPath.
2018-04-19 egdaniel When creating testing backendTexture take colorspace into account.
2018-04-19 kjlubick Fix Chromecast bots
2018-04-19 borenet [infra] gen_tasks: Pass internal hardware ID as a property
2018-04-18 herb Untangle strike cache and glyph cache
2018-04-19 mtklein disallow negative setReserve() calls
2018-04-19 mtklein rm SkTDArray::select()
2018-04-19 mtklein clean up setReserve() rule-bending
2018-04-18 scroggo Remove the limit on dng allocations
2018-04-19 scroggo Revert "Add stub gpu workaround generators"
2018-04-19 caryclark path is rect track corners
2018-04-17 borenet Reland "[infra] Run recipes through Kitchen"
2018-04-19 angle-skia-autoroll Roll third_party/externals/angle2/ aaa19de06..eeec3b14c (1 commit)
2018-04-18 angle-skia-autoroll Roll third_party/externals/angle2/ 5804dc8ea..aaa19de06 (9 commits)
2018-04-18 enne Add stub gpu workaround generators
2018-04-18 herb Move strike cache Find*() to strike cache
2018-04-18 liyuqian Remove SK_SUPPORT_LEGACY_PATH_DAA_BIT
2018-04-18 fmalita Prevent unnecessary/unbounded growth of SkTDynamicHash capacity
2018-04-18 bungeman DFT to draw A8 instead of incorrect vertical lcd.
2018-04-18 csmartdalton ccpr: Implement conics
2018-04-18 csmartdalton Always call endFlush on opLists that might survive a flush
2018-04-18 fmalita Convert A8 D32 mask blitters to Sk4px
2018-04-18 liyuqian Reland "Fix the fat rect bug in the threaded backend"
2018-04-18 halcanary SkQP: speed up tools/skqp/make_apk_list\
2018-04-18 brianosman Support all destination profiles in SkColorSpaceXform_skcms
2018-04-17 brianosman With ES3, enable both ES2 and ES3 external image extensions
2018-04-18 caryclark fix path is rect flaw exposed by gold

Created with:
  roll-dep src/third_party/skia
2018-04-19 13:03:35 -04:00
Chinmay Garde
3cc8d82895
Fix more Linux unittest targets. (#5045) 2018-04-18 18:15:50 -07:00
Jason Simmons
b6ba69bae7
libtxt: add boxes representing empty lines in GetRectsForRange (#5043)
If the start/end range passed to GetRectsForRange includes lines of text
that did not render any glyphs, then GetRectsForRange should add a placeholder
for that line.  In particular, the framework expects this so that it can
position the cursor on an empty line when editing text.

Fixes https://github.com/flutter/flutter/issues/16418
2018-04-18 18:04:52 -07:00
Brian Osman
388f019961 Enable downscale of very large images when uploading on IO thread (#5011) 2018-04-18 18:00:00 -07:00
Chinmay Garde
22e138126f
Allow runtime unit-test to perform dynamic symbol resolution for Dart snapshots. (#5044) 2018-04-18 17:55:39 -07:00
Chinmay Garde
59d1366c91
Don’t build the host shell on target builds. (#5042) 2018-04-18 16:28:24 -07:00
Jason Simmons
7a6b77999f
Remove the weak pointer factory from the service isolate's DartIsolate object (#5041)
The WeakPtrFactory must be deleted on the thread where it was created.
However, the service isolate is created and destroyed on threads from
the Dart thread pool, and the creating thread may not be the same as
the destroying thread.
2018-04-18 13:02:19 -07:00
Chinmay Garde
d4729abaf7
Update the embedder GN target to use a source set instead of a complete static library. (#5040)
Creating a dylib from a “complete” static library does not propagate symbol visisbility definitions. I also got rid of the static library and used a source set instead because we don’t need to do the extra work for other targets.
2018-04-18 12:50:22 -07:00
Chinmay Garde
8973c733a5
Implement Scene::toImage for creating a raster image representation of a scene. (#5021) 2018-04-18 12:42:16 -07:00
Jason Simmons
572c5844aa
Configure kernel paths in the embedder if the asset directory contains the kernel assets (#5039)
"flutter build bundle" in Dart 2 mode now builds an assets directory
containing the application and platform kernels along with the app's other
assets.

With this patch, embedders can run these bundles by setting
FlutterProjectArgs.assets_path to the bundle directory.  In this scenario,
FlutterProjectArgs.main_path and packages_path will be ignored.
2018-04-18 12:12:39 -07:00
Ravi Mistry
8ed932c393 Roll src/third_party/skia/ 1cd6098d5..1ccaa6e05 (20 commits) (#5038)
https://skia.googlesource.com/skia.git/+log/1cd6098d52a5..1ccaa6e05629

$ git log 1cd6098d5..1ccaa6e05 --date=short --no-merges --format='%ad %ae %s'
2018-04-18 mtklein skcms→b4e167a stricter TF13 matching
2018-04-18 mtklein skcms→589b15b add skcms_EnsureUsableAsDestination
2018-04-18 angle-skia-autoroll Roll third_party/externals/angle2/ c90d4d38c..5804dc8ea (2 commits)
2018-04-18 herb Simplify strike cache Node
2018-04-18 egdaniel Remove persp_shader gms from DDL blacklist
2018-04-18 angle-skia-autoroll Roll third_party/externals/angle2/ aed1b56aa..c90d4d38c (2 commits)
2018-04-17 bungeman Remove text flag filtering from SkBitmapDevice.
2018-04-17 angle-skia-autoroll Roll third_party/externals/angle2/ 86de76b69..aed1b56aa (5 commits)
2018-04-17 reed show sum of cubic errors
2018-04-17 robertphillips Add handling to ViaDDL for images that are too large to be uploaded in one go
2018-04-17 herb Move node information to SkStrikeCache
2018-04-17 bungeman IWYU for some more test files starting with 'C'.
2018-04-17 reed detect if we made an infinite rect
2018-04-17 borenet [infra] Support recursive configs in builder_name_schema
2018-04-16 egdaniel No long require copy as draw for vulkan wrapped resources.
2018-04-17 caryclark path is rect diag test is required
2018-04-17 mtklein SkStrikeDifferences::operator() -> add()
2018-04-17 reed avoid overflow by using tmp 64bits
2018-04-17 brianosman Move external texture extension logic into SkSL
2018-04-17 benjaminwagner [infra] Add service account override in gen_tasks.go.

Created with:
  roll-dep src/third_party/skia
2018-04-18 14:36:58 -04:00
Chinmay Garde
a0804f3738
Simplify weak pointer factories and allow vending weak pointers on multiple threads. (#5029) 2018-04-18 11:07:16 -07:00