2729 Commits

Author SHA1 Message Date
skia-flutter-autoroll
eaa5b877cd Roll src/third_party/skia 77521d9e06e8..392846665c40 (1 commits) (flutter/engine#16729) 2020-02-21 06:21:03 -08:00
skia-flutter-autoroll
937a7f093f Roll fuchsia/sdk/core/linux-amd64 from CZTpy... to -u-iU... (flutter/engine#16727) 2020-02-21 00:26:03 -08:00
skia-flutter-autoroll
7064be4edd Roll src/third_party/skia 3ffa7af75301..77521d9e06e8 (2 commits) (flutter/engine#16725) 2020-02-20 22:16:02 -08:00
skia-flutter-autoroll
772bbb2ced Roll src/third_party/skia df283d01cabb..3ffa7af75301 (1 commits) (flutter/engine#16722) 2020-02-20 18:56:02 -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
883d67d62f Roll src/third_party/skia 1d589a578ca4..706851dc99d9 (2 commits) (flutter/engine#16714) 2020-02-20 15:41:03 -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
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
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
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
skia-flutter-autoroll
ee3a88f24b Roll src/third_party/skia c5ff41f2976e..7dfb46e7f397 (20 commits) (flutter/engine#16691) 2020-02-19 14:51:05 -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
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
skia-flutter-autoroll
011e3866a9 Roll src/third_party/skia 7281a8623799..fe6fe6c5a8a8 (7 commits) (flutter/engine#16667) 2020-02-18 15:51:03 -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
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
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
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
799b970ec7 Roll fuchsia/sdk/core/linux-amd64 from CNbNp... to m7Xt4... (flutter/engine#16645) 2020-02-17 01:16:03 -08:00
skia-flutter-autoroll
5534a80c44 Roll src/third_party/skia 660a73ada09d..c65cd5c8dba9 (2 commits) (flutter/engine#16644) 2020-02-17 00:11:02 -08:00
skia-flutter-autoroll
35e0f55272 Roll src/third_party/skia bfe80bb552b0..660a73ada09d (1 commits) (flutter/engine#16643) 2020-02-16 22:26:08 -08:00
skia-flutter-autoroll
776c8be83e Roll src/third_party/skia 8935981317ca..bfe80bb552b0 (1 commits) (flutter/engine#16642) 2020-02-16 13:36:02 -08:00
skia-flutter-autoroll
2567016fd1 Roll src/third_party/skia a27ca5566533..8935981317ca (1 commits) (flutter/engine#16640) 2020-02-16 06:11:03 -08:00
skia-flutter-autoroll
649f4214e9 Roll fuchsia/sdk/core/linux-amd64 from Dx_qu... to CNbNp... (flutter/engine#16639) 2020-02-16 00:26:03 -08:00
skia-flutter-autoroll
175a148347 Roll src/third_party/skia 2c5ee187245a..a27ca5566533 (1 commits) (flutter/engine#16638) 2020-02-15 22:56:04 -08:00
skia-flutter-autoroll
35c088d24a Roll src/third_party/skia 81e84a6e7f03..2c5ee187245a (1 commits) (flutter/engine#16637) 2020-02-15 12:21:02 -08:00
skia-flutter-autoroll
203a964a81 Roll src/third_party/skia b7ceaa8efd2b..81e84a6e7f03 (2 commits) (flutter/engine#16636) 2020-02-15 10:46:03 -08:00
skia-flutter-autoroll
10fe54c858 Roll fuchsia/sdk/core/linux-amd64 from J-_s6... to Dx_qu... (flutter/engine#16635) 2020-02-15 04:31:03 -08:00
skia-flutter-autoroll
ad6af671c9 Roll src/third_party/skia 05676f7bc238..b7ceaa8efd2b (1 commits) (flutter/engine#16633) 2020-02-15 01:36:03 -08:00
skia-flutter-autoroll
431fff96bd Roll src/third_party/skia 55f040bcb943..05676f7bc238 (47 commits) (flutter/engine#16631) 2020-02-14 18:41:03 -08:00
skia-flutter-autoroll
7f638df041 Roll fuchsia/sdk/core/linux-amd64 from Bmq1m... to J-_s6... (flutter/engine#16592)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/fuchsia-linux-sdk-flutter-engine
Please CC  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
2020-02-14 14:29:35 -08:00
skia-flutter-autoroll
d4cd863858 Roll src/third_party/skia 3bf3b92dfab0..55f040bcb943 (3 commits) (flutter/engine#16587) 2020-02-13 10:03:06 -08:00
skia-flutter-autoroll
d2846df8f9 Roll src/third_party/skia 1d1333fcedf8..3bf3b92dfab0 (1 commits) (flutter/engine#16584) 2020-02-13 07:38:02 -08:00
skia-flutter-autoroll
6913c4fea7 Roll src/third_party/skia 1a733b5b760a..1d1333fcedf8 (3 commits) (flutter/engine#16578) 2020-02-12 23:48:02 -08:00
skia-flutter-autoroll
39b4ade7d2 Roll src/third_party/skia 6029cbd560b7..1a733b5b760a (1 commits) (flutter/engine#16577) 2020-02-12 22:08:02 -08:00
Matt Carroll
bd50ab762a Exposes FlutterSurfaceView, and FlutterTextureView to FlutterActivity and FlutterFragment. (#41984, #47557) (flutter/engine#16552) 2020-02-12 19:21:00 -08:00