8823 Commits

Author SHA1 Message Date
skia-flutter-autoroll
772bbb2ced Roll src/third_party/skia df283d01cabb..3ffa7af75301 (1 commits) (flutter/engine#16722) 2020-02-20 18:56:02 -08:00
Dan Field
b1f692e9cb Refactor of ClaimDartHandle -> AssociateWithDartWrapper (flutter/engine#16720) 2020-02-20 17:31:03 -08:00
skia-flutter-autoroll
d08458c918 Roll src/third_party/skia 706851dc99d9..df283d01cabb (3 commits) (flutter/engine#16719) 2020-02-20 17:16:02 -08:00
skia-flutter-autoroll
a4c29d4ae9 Roll src/third_party/dart 81d4cc6bc99a..fd20c7b92bb8 (31 commits) (flutter/engine#16716) 2020-02-20 16:11:04 -08:00
Dan Field
a03a05a385 Reland "Remove usage of Dart_AllocateWithNativeFields" (flutter/engine#16713) 2020-02-20 16:06:02 -08:00
skia-flutter-autoroll
883d67d62f Roll src/third_party/skia 1d589a578ca4..706851dc99d9 (2 commits) (flutter/engine#16714) 2020-02-20 15:41:03 -08:00
George Wright
21f28db400 Flush the SkCanvas when submitting a frame in ShellTestPlatformViewVulkan::OffscreenSurface (flutter/engine#16717) 2020-02-20 15:18:36 -08:00
skia-flutter-autoroll
08e3289592 Roll src/third_party/skia 62076977a0b7..1d589a578ca4 (6 commits) (flutter/engine#16712) 2020-02-20 14:06:03 -08:00
skia-flutter-autoroll
4e660e94c1 Roll src/third_party/skia 9d4e31d6cda5..62076977a0b7 (11 commits) (flutter/engine#16710) 2020-02-20 12:31:02 -08:00
freiling
07bfcf19f1 [shell tests] Integrate Vulkan with Shell Tests (flutter/engine#16621)
This change creates a test only implementation of flutter::Surface backed by an
offscreen Vulkan GrContext. Much of the code in this test Surface was lifted
from flutter::VulkanWindow which I was unable to use without extricating it
from the VkSurface/VkSwapchain code which we do not want to use in offscreen
tests. I would recommend refactoring VulkanWindow to separate GrContext
creation and VkSwapchain creation in order to promote greater code reuse
between onscreen and offscreen vulkan paths.

This change is excersised thoroughly by the shell tests and was manually
tested against these tests on Fuchsia on Intel.
2020-02-20 11:37:00 -08:00
vsmenon
a605113c25 opt out dart:ui from nnbd (flutter/engine#16473)
* opt out dart:ui from nnbd

* Annotate tests as well
2020-02-20 11:04:00 -08:00
skia-flutter-autoroll
14f6564f23 Roll fuchsia/sdk/core/linux-amd64 from YPr0t... to CZTpy... (flutter/engine#16708) 2020-02-20 10:56:03 -08:00
skia-flutter-autoroll
e83edfaf91 Roll src/third_party/skia 2c2db2762809..9d4e31d6cda5 (1 commits) (flutter/engine#16707) 2020-02-20 10:51:04 -08:00
Justin McCandless
9c628f10d8 Fix the newline on some keyboards (flutter/engine#16560) 2020-02-20 10:36:03 -08:00
Martin Kustermann
a39aad4a03 Enable lazy-async-stacks by-default in all modes (flutter/engine#16556)
This was already enabled by-default in AOT mode in [0] - which made the
gen_snapshot invocations use "--lazy-async-stacks --no-causal-async-stacks".

See go/dart-10x-faster-async for more information.

[0] https://github.com/flutter/flutter/commit/347823234fd
2020-02-20 18:31:26 +01:00
skia-flutter-autoroll
3cbd8a468b Roll src/third_party/skia a5097354217b..2c2db2762809 (1 commits) (flutter/engine#16704) 2020-02-19 23:46:03 -08:00
skia-flutter-autoroll
af24f742c8 Roll src/third_party/skia ed1ff23c2768..a5097354217b (1 commits) (flutter/engine#16703) 2020-02-19 22:11:04 -08:00
skia-flutter-autoroll
4155affd88 Roll src/third_party/dart 7469b87b042a..e187e42593e8 (11 commits) (flutter/engine#16702) 2020-02-19 20:26:03 -08:00
skia-flutter-autoroll
a0e1946a92 Roll fuchsia/sdk/core/linux-amd64 from VHyDa... to YPr0t... (flutter/engine#16701) 2020-02-19 19:36:04 -08:00
skia-flutter-autoroll
a36d3fd764 Roll src/third_party/skia 9baef3593c3c..ed1ff23c2768 (5 commits) (flutter/engine#16699) 2020-02-19 18:01:05 -08:00
skia-flutter-autoroll
cc61744a99 Roll src/third_party/skia 7dfb46e7f397..9baef3593c3c (3 commits) (flutter/engine#16696) 2020-02-19 16:26:04 -08:00
xster
dbaba67232 fix param (flutter/engine#16694) 2020-02-19 15:06:06 -08:00
skia-flutter-autoroll
ee3a88f24b Roll src/third_party/skia c5ff41f2976e..7dfb46e7f397 (20 commits) (flutter/engine#16691) 2020-02-19 14:51:05 -08:00
Dan Field
d483ae6288 Revert "Remove usage of Dart_AllocateWithNativeFields from tonic (#16588)" (flutter/engine#16684)
This reverts commit d32975f3877f6be5b227f3156226ccdea35f15c9.
2020-02-19 10:00:05 -08:00
Mouad Debbar
713cdb3d7b [web] Paragraph.getBoxesForRange uses LineMetrics (flutter/engine#16625) 2020-02-19 09:56:57 -08:00
skia-flutter-autoroll
cd573d98bc Roll src/third_party/dart 707ecda05e14..0f141be8bd52 (4 commits) (flutter/engine#16683)
https://dart.googlesource.com/sdk.git/+log/707ecda05e14..0f141be8bd52

git log 707ecda05e14..0f141be8bd52 --date=short --first-parent --format='%ad %ae %s'
2020-02-19 dmitryas@google.com [cfe] Implement new rules around types of case expressions
2020-02-19 johnniwinther@google.com [cfe] Do not hoist this expressions
2020-02-19 davidmorgan@google.com Revert "Reland "[ VM ] Removed Dart_Allocate, Dart_AllocateWithNativeFields, and Dart_InvokeConstructor from embedding API""
2020-02-19 dacoharkes@google.com [test/ffi] Re-enable disabled tests

Created with:
  gclient setdep -r src/third_party/dart@0f141be8bd52

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dart-sdk-flutter-engine
Please CC dart-vm-team@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Bug: None
Tbr: dart-vm-team@google.com
2020-02-19 09:34:40 -08:00
skia-flutter-autoroll
d729b8eabf Roll src/third_party/skia a037445e07a7..c5ff41f2976e (1 commits) (flutter/engine#16677) 2020-02-19 00:06:04 -08:00
skia-flutter-autoroll
65d4cb049a Roll src/third_party/skia d0d033a12556..a037445e07a7 (4 commits) (flutter/engine#16676) 2020-02-18 22:31:04 -08:00
skia-flutter-autoroll
a5bacd6cbe Roll src/third_party/skia 799a23cf0602..d0d033a12556 (3 commits) (flutter/engine#16675) 2020-02-18 20:56:04 -08:00
skia-flutter-autoroll
516dea7510 Roll src/third_party/dart 3883c6070942..c11c0ae3fdca (9 commits) (flutter/engine#16673) 2020-02-18 19:41:03 -08:00
skia-flutter-autoroll
d6899d4773 Roll fuchsia/sdk/core/linux-amd64 from 2W9Xr... to VHyDa... (flutter/engine#16670) 2020-02-18 19:26:05 -08:00
skia-flutter-autoroll
212d1532ba Roll src/third_party/skia fe6fe6c5a8a8..799a23cf0602 (1 commits) (flutter/engine#16669) 2020-02-18 19:21:03 -08:00
Chinmay Garde
79c230fc7b Revert "Lift restriction that embedders may not trample the render thread OpenGL context in composition callbacks. (#16653)" (flutter/engine#16674)
This reverts commit 277bc6c62bf686874e6e519a8bf5707a5d794cf3.
2020-02-18 18:59:21 -08:00
Harry Terkelsen
a51698a522 URL-encode asset URLs so assets are properly loaded (flutter/engine#16630)
* URL-encode asset URLs so assets are properly loaded

* Add comment
2020-02-18 16:19:36 -08:00
skia-flutter-autoroll
011e3866a9 Roll src/third_party/skia 7281a8623799..fe6fe6c5a8a8 (7 commits) (flutter/engine#16667) 2020-02-18 15:51:03 -08:00
Chinmay Garde
2995c54d0d Control test timeouts based on debugger status or command line flags. (flutter/engine#16375) 2020-02-18 15:31:04 -08:00
skia-flutter-autoroll
89cd2ebeb4 Roll src/third_party/skia c1bb9cba16be..7281a8623799 (9 commits) (flutter/engine#16665) 2020-02-18 14:16:03 -08:00
Chinmay Garde
277bc6c62b Lift restriction that embedders may not trample the render thread OpenGL context in composition callbacks. (flutter/engine#16653)
During the implementation of custom compositor integration, the embedder gets
callbacks on the render thread to prepare render targets (framebuffers,
textures, etc) for the engine to render into, callbacks to present these render
targets along with platform managed contents, and, callbacks to collect render
targets once they can no longer be recycled by the engine in subsequent frames.
During these callbacks, the engine mandates the OpenGL state on the render
thread be preserved. This restriction has been the source of hard to isolate
issues where the embedder trampled on the OpenGL bindings state in the callback
but failed to restore state before control went back to the engine. Due to the
nature of the OpenGL API, such errors are easy to make and overlook. This patch
lifts the restriction from the embedder. Embedders may now freely work with the
OpenGL state in custom compositor callbacks and the engine will make sure to
disregard OpenGL bindings when control flows back to it.

Disregarding current OpenGL state has a certain performance penalty and the
majority of this patch handles refactoring various engine embedder components
such that this happens only once per frame. The most trivial version of this
patch would reset context bindings on every transition of control flow from the
embedder to the engine. However, that naive approach would have necessitated
more than 50 binding resets in existing unit-test cases (depending on the number
of platform view interleaving levels and render target recycling hit rates). In
this implementation, bindings will be reset only once per frame and this does
not depend on the number of platform views in the scene.

The majority of this patch is a refactoring of engine subsystems used in
`ExternalViewEmbedder::SubmitFrame` which is thoroughly documented with each
opportunity for the embedder to invalidate OpenGL state tagged.

The refactoring also enables the implementation of the following optimizations
to engine behavior which should aid in reducing the memory needed for the
creation of render targets. These optimization include:
* The engine will only ask the embedder for render targets in which it expects
  to render into. This was a quirk in the way in which root and non-root render
  targets were handled. The engine could require the embedder to create a render
  target but then realize it didn’t have anything to render into it. In the
  presentation callback, it would skip that render target. But the embedder
  still had to allocate that extra render target. This will no longer be the
  case and should reduce memory use.
* The engine may now skip always realizing (via the embedder render target
  creation callback) and presenting the root render target. This was also a side
  effect of the same quirk. Previously, the engine would always ask the embedder
  to present the root render target even if it was empty. Since this is no
  longer the case, few render targets should be allocated which will reduce
  memory consumption.
* The engine will now ask the embedder to collect unused render targets before
  it asks it to create new ones. The previous behavior was to ask the embedder
  for new targets and then collect old ones. This would cause spikes in memory
  use when the size of the render targets would change. These memory use spikes
  should now be troughs.
* The previous render target cache also considered the platform view ID in cache
  viability considerations (instead of just the size of the render target). This
  was a bug which has been fixed. This should lead to better cache utilization
  in some situations.

These optimizations are now codified in unit-tests and the updated test
expectations are a result of these optimizations now being in place.

* Fixes https://github.com/flutter/flutter/issues/50751
* Fixes https://github.com/flutter/flutter/issues/46911
* Fixes https://github.com/flutter/flutter/issues/43778
* Fixes b/146142979
2020-02-18 12:51:49 -08:00
Yegor
2782ec758d update hash code logic on the web (flutter/engine#16624) 2020-02-18 12:29:17 -08:00
Nurhan Turgut
97d1caffaa [web] Skipping failing edge tests (flutter/engine#16626)
* making edge default test browser on windows. adding some skips (not all) for methods failing on edge

* skip failing tests. make egde default for testing

* skip one more test

* addressing reviewer comments. removing extra bat file
2020-02-18 09:36:04 -08:00
skia-flutter-autoroll
b98a0c5838 Roll src/third_party/skia 78b471760dd9..c1bb9cba16be (1 commits) (flutter/engine#16662) 2020-02-18 08:46:04 -08:00
skia-flutter-autoroll
e8ecaa8ae1 Roll src/third_party/dart a314cff6ee03..999eeea5a3ff (15 commits) (flutter/engine#16661) 2020-02-18 08:11:03 -08:00
skia-flutter-autoroll
24843a3eb2 Roll fuchsia/sdk/core/linux-amd64 from Uc8XS... to 2W9Xr... (flutter/engine#16659) 2020-02-18 04:31:02 -08:00
skia-flutter-autoroll
c851855a44 Roll src/third_party/dart b20c35c7d90f..a314cff6ee03 (4 commits) (flutter/engine#16657) 2020-02-18 02:41:02 -08:00
skia-flutter-autoroll
fb5829d5d6 Roll src/third_party/skia 9dbb98007b7b..4af17e434cdc (2 commits) (flutter/engine#16656) 2020-02-18 01:51:03 -08:00
skia-flutter-autoroll
a680469f3c Roll src/third_party/skia 3c4f3c178ade..9dbb98007b7b (2 commits) (flutter/engine#16655) 2020-02-17 22:51:03 -08:00
skia-flutter-autoroll
3ec52112ca Roll fuchsia/sdk/core/linux-amd64 from m7Xt4... to Uc8XS... (flutter/engine#16652) 2020-02-17 14:51:02 -08:00
skia-flutter-autoroll
dcda71ca49 Roll src/third_party/skia 706f6b4069b1..3c4f3c178ade (1 commits) (flutter/engine#16650) 2020-02-17 13:36:02 -08:00
skia-flutter-autoroll
1a10eb0f75 Roll src/third_party/skia c65cd5c8dba9..706f6b4069b1 (1 commits) (flutter/engine#16649) 2020-02-17 11:36:03 -08:00
skia-flutter-autoroll
2c8aae0d95 Roll src/third_party/dart 374c9c448fdc..7ed1690b4ed6 (1 commits) (flutter/engine#16647) 2020-02-17 03:56:03 -08:00