1. 14 4月, 2018 1 次提交
    • B
      Remove only use of SkPaint::kGenA8FromLCD (#4994) · 37e5df05
      Brian Osman 提交于
      Skia is removing SkPaint::kGenA8FromLCD (this information is now part of the SkPixelGeometry on SkSurface). This flag never appears to be mentioned anywhere else in the code and appears to be left over from being copied from blink (this code in blink used to set this flag conditionally).
      37e5df05
  2. 13 4月, 2018 12 次提交
    • J
    • J
    • A
      [fuchsia] Fix use-after-free (#4987) · 0c74fc93
      Adam Barth 提交于
      We were trying to re-establish the wait after calling Reset(), but
      Reset() can result in the surface being destroyed. Now we re-establish
      the wait inside the Reset() machinery.
      0c74fc93
    • A
      [fuchsia] Fix build (#4986) · b6d2dde9
      Adam Barth 提交于
      Add missing include.
      b6d2dde9
    • J
      [async] Adapt to libasync API changes. (#4980) · 1dd12649
      Jeff Brown 提交于
      1dd12649
    • A
      Roll dart sdk to f76dad0adcf6766d73351354da653d6a793b5abc. (#4983) · 76cb311d
      Alexander Aprelev 提交于
      * Roll dart sdk to f76dad0adcf6766d73351354da653d6a793b5abc.
      
      Changes since last roll
      ```
      f76dad0adc [frontend-server] Report error count on compile and recompile.
      17fc446579 [vm/kernel/aot] Fix handling of calls via fields/getters in TFA
      16a4ed7dc4 Remove an unused subclass of LineInfo
      c7e4a7d333 [ VM / CFE ] Added override to allowPlatformPrivateLibraryAccess in VmTarget for tests which need to import dart:_internal.
      1e312819ca Ensure errors guard erroneous expressions.
      0f3b9f302b [vm/compiler] Fix assertion in the constant propagator.
      9995feba8e Adjusted status for ListMixin_class_A01_t02
      03d7a9e55c Revert "[VM] Improve quality of codegen for crypto operations"
      7cc4d76a30 Add tryParse alternatives to parseFunctions.
      58a6bfd974 Improve identifier recovery in expressions
      17d6d470a2 [VM] Remove experimental, unused, argument bits from argdesc and reduce prologue size
      5909932d38 [vm/compiler] Canonicalize more intermediate constants in IL.
      df6055d876 Only bypass cache when .packages is invalidated
      5aec8ad6fb Delete invalidated builder loaded from dill
      82fed79ed1 [VM] Improve quality of codegen for crypto operations
      d27b98c513 [VM] Slightly better behaviour in out-of-memory situation
      b20bab56a0 [fuchsia] Update timezone service integration
      430abca69a [ VM ] Removed unnecessary assignment to Function::null() when target was already NULL.
      2ddc5495f8 Reduce DDC signature overhead
      25702d355e [VM / frontend-server] Add ability to pass the 'sync-async' flag into the front end server so that 'flutter tools' can choose to turn it off or on.
      8df4042b2d fix #32088, DDC calls nSM for signature mismatch
      d52a0419f6 [VM bigint] Fix digit array size calculation for _divRem result (fixes #32739). Add regression test to existing bigint test.
      a9c3dabb4c fix #32769, performance regression in Analyzer callable function support
      b3c94b5d52 Revert "Reland "[VM] Introduction of type testing stubs - Part 1-4""
      77116c14be Show isolate memory usage in the analysis server diagnostics page.
      a90a74cfd8 JSArray strong mode performance fixes
      cbdf102d0c Use interceptor for reading type arguments
      9d4da03309 Roll dart2js_info to 0.5.6+2
      a35bf88f9d Run pub upgrade on analyis plugins before (re)start.
      1db1ac4863 Produce a single-file analyzer for Goma.
      072bd1c88e Remove KernelLibraryBuilder proxies
      12950e8170 Fix the windows bot and update a missed test
      cf8c76dc50 [vm/compiler] Restore old print-flow-graph behavior.
      a60d803913 [infra] Add --no-preview-dart-2 support for the analyzer to test.py
      ```
      
      * Update license hash. No changes to the licenses.
      76cb311d
    • J
      8a6e64a8
    • J
      Fix build on Windows (#4984) · 8a8f9655
      Jason Simmons 提交于
      8a8f9655
    • E
      Update skia vulkan usages to use getBackendRenderTarget. (#4982) · 69d9590e
      egdaniel 提交于
      * Update vulkan_swampchain.cc to use getBackendRenderTarget.
      
      The use of getRenderTargetHandle on SkSurface is being removed so switch over to the new API of getBackendRenderTarget.
      
      * Update vulkan_swapchain.cc
      
      * Update vulkan_surface_producer.cc
      69d9590e
    • J
      Do not pause rendering when android activity loses focus (#4848) · c83d1ef1
      Jonah Williams 提交于
      * do not pause rendering when android view loses focus
      c83d1ef1
    • J
      libtxt: improvements to glyph cluster handling and grapheme breaking (#4978) · 9eec9848
      Jason Simmons 提交于
      * Extend Minikin to record the cluster identifier corresponding to each glyph
      * Use the cluster values to determine the range of input code units that map
        to a glyph
      * Use Minikin's libraries to find boundaries between graphemes within a
        ligature
      
      Fixes https://github.com/flutter/flutter/issues/16151
      9eec9848
    • V
  3. 12 4月, 2018 4 次提交
    • C
      Re-land "Support multiple shells in a single process. (#4932)" (#4977) · a3327bff
      Chinmay Garde 提交于
      This reverts commit 9199b40f.
      a3327bff
    • R
      Roll src/third_party/skia/ 9874bf1bc..3462eb034 (167 commits) (#4973) · 13fd804e
      Ravi Mistry 提交于
      https://skia.googlesource.com/skia.git/+log/9874bf1bcecd..3462eb0346de
      
      $ git log 9874bf1bc..3462eb034 --date=short --no-merges --format='%ad %ae %s'
      2018-04-11 mtklein skcms→56f2a09 add sRGB profile and ApproximatelyEqualProfiles()
      2018-04-11 liyuqian Add private fIsBadForDAA bit to SkPath
      2018-04-11 robertphillips Add Vulkan to the DDL bots
      2018-04-11 mtklein roll to particular targets
      2018-04-11 benjaminwagner Switch to latest Windows Intel Skylake GPU driver.
      2018-04-11 fmalita Fix SkTCopyOnFirstWrite copy semantics
      2018-04-11 reed no need to tile draws that don't involve paths
      2018-04-11 mtklein skcms→91a8958 Detect and canonicalize identity tables
      2018-04-11 mtklein skcms→307ec0f remove a layer of nesting in skcms_Curve
      2018-04-10 robertphillips Fix alpha threshold image filter GPU implementation
      2018-04-10 egdaniel Remove guard around getBackendTexture/RenderTarget calls
      2018-04-11 robertphillips Revert "Fix handling of MaskFilter matrices"
      2018-04-10 angle-skia-autoroll Roll third_party/externals/angle2/ 0ce016c1b..785b20b7a (7 commits)
      2018-04-10 fmalita Fix handling of MaskFilter matrices
      2018-04-10 robertphillips Get ViaDDL working with Vulkan
      2018-04-10 brianosman skcms→e753c6d disable -Wdouble-promotion
      2018-04-10 egdaniel Move GrBackendRenderTarget over to new system of getting backed infos
      2018-04-10 liyuqian Remove unused field fBitmapBytes
      2018-04-10 egdaniel Add ctor to GrVkImageInfo.
      2018-04-10 liyuqian Merge drawDevice and respect ctm for the paint
      2018-04-10 mtklein skcms→dff16bc express ApproximateCurve error in input units
      2018-04-10 csmartdalton ccpr: Clip quadratic hulls more efficiently
      2018-04-10 mtklein allow rolling from anywhere
      2018-04-10 jvanverth Add initial support for simple concave shadows.
      2018-04-10 mtklein skcms→9ff49a5 use GaussNewton for 7-parameter approx
      2018-04-06 liyuqian Do not use CTM for drawDevice or drawSprite
      2018-04-10 csmartdalton ccpr: Improve CPU checks for collinear points
      2018-04-10 csmartdalton ccpr: Remove fCurrAnchorPoint from GrCCGeometry
      2018-04-10 mtklein give skcms rolls a helpful commit msg
      2018-04-08 update-skps Update SKP version
      2018-04-10 robertphillips Remove extra Vulkan submitCommandBuffer from deleteTestingOnlyBackendTexture
      2018-04-10 mtklein hard-roll skcms into Skia
      2018-04-10 egdaniel Update getBackendInfo calls on GrBackendTexture to support VkImageLayout better.
      2018-04-10 caryclark one more path is rect bug
      2018-04-09 caryclark fix path to rect when missing close verb
      2018-04-09 benjaminwagner Omit skbug6653 on internal device.
      2018-04-09 brianosman Remove SkDEBUGFAIL for non-invertible XYZ matrix
      2018-04-09 angle-skia-autoroll Roll third_party/externals/angle2/ 6c59e4a15..0ce016c1b (2 commits)
      2018-04-06 reed identify interesting cubic points
      2018-04-09 mtklein use commonPaint for all raster pipeline
      2018-04-06 benjaminwagner Upgrade Debian9 bots to 9.4.
      2018-04-09 bsalomon Reland "Remove deprectated GrContext::MakeGL overloads that take raw ptr"
      2018-04-09 skcms-skia-autoroll Roll third_party/externals/skcms/ 8a727815d..16a9cebff (1 commit)
      2018-04-06 csmartdalton ccpr: Remove WindMethod from GrCCCoverageProcessor
      2018-04-09 angle-skia-autoroll Roll third_party/externals/angle2/ 6c7ab7fe8..6c59e4a15 (3 commits)
      2018-04-06 bsalomon Add canvas2D fast paths to new read/write pixels code paths.
      2018-04-09 egdaniel Make sure GrBackendTextures are valid before starting to do things with them
      2018-04-06 brianosman Remove code that was only used by the old debugger
      2018-04-08 csmartdalton Implement Sk2f::Store2
      2018-04-09 angle-skia-autoroll Roll third_party/externals/angle2/ 5ae64c94d..6c7ab7fe8 (1 commit)
      2018-04-08 herb Revert "Remove all notion of transport from the API."
      2018-04-07 angle-skia-autoroll Roll third_party/externals/angle2/ e547aac75..5ae64c94d (1 commit)
      2018-04-05 halcanary SkPDF: smarter Jpeg when libjpeg-turbo is present
      2018-04-07 angle-skia-autoroll Roll third_party/externals/angle2/ d2488aba5..e547aac75 (2 commits)
      2018-04-06 herb Better layer tracking fidelity
      2018-04-06 angle-skia-autoroll Roll third_party/externals/angle2/ b8e396609..d2488aba5 (2 commits)
      2018-04-06 skcms-skia-autoroll Roll third_party/externals/skcms/ 24c91d143..8a727815d (1 commit)
      2018-04-06 brianosman Remove scanlineOrder switch statements that always do the same thing
      2018-04-06 reed detect if makeOffset failed
      2018-04-05 csmartdalton vulkan: Fix an optimus-related failure with vkEnumeratePhysicalDevices
      2018-04-06 egdaniel Make generated effects from sksl fp files not need SK_SUPPORT_GPU
      2018-04-05 herb Remove all notion of transport from the API.
      2018-04-04 halcanary SkRegion: Use less memory for SkRegion::Oper
      2018-04-06 brianosman Remove old debugger (it no longer builds)
      2018-04-06 liyuqian Revert "Exercise the threaded backend in test bots"
      2018-04-06 egdaniel Remove unneeded SK_SUPPORT_GPU checks in gpu only files.
      2018-04-06 halcanary Region Op Fuzzer
      2018-04-05 csmartdalton ccpr: Make curve corners more seamless
      2018-04-05 brianosman Remove SK_SUPPORT_LEGACY_BLURMASKFILTER
      2018-04-06 bsalomon Add versions of MakeGL() that don't require include GrGLInterface.h in order to use the GrGLMakeNativeInterface
      2018-04-06 egdaniel Don't use GrPixelConfig value as proxy for valid on GrBackendSurface.
      2018-04-05 liyuqian Exercise the threaded backend in test bots
      2018-04-06 angle-skia-autoroll Roll third_party/externals/angle2/ c3755fc56..b8e396609 (1 commit)
      2018-04-06 update-docs Update markdown files
      2018-04-05 angle-skia-autoroll Roll third_party/externals/angle2/ dd196e0bc..c3755fc56 (5 commits)
      2018-04-05 caryclark remove SK_IGNORE_TO_STRING
      2018-03-29 bungeman Distinguish between glyphs with empty path and no path.
      2018-04-05 skcms-skia-autoroll Roll third_party/externals/skcms/ 6959d4597..24c91d143 (1 commit)
      2018-04-05 skcms-skia-autoroll Roll third_party/externals/skcms/ d75edb2e3..6959d4597 (1 commit)
      2018-04-05 skcms-skia-autoroll Roll third_party/externals/skcms/ a7974d9f6..d75edb2e3 (1 commit)
      2018-04-05 fmalita Clip SlideDir slides to their declared dimensions
      2018-04-05 bungeman Mac to better serialize OTTO fonts.
      2018-04-05 robertphillips Revert "Remove deprectated GrContext::MakeGL overloads that take raw ptr"
      2018-04-05 bsalomon Remove SK_DISABLE_TEXTURE_OP_AA
      2018-04-05 fmalita [viewer] Consolidate external slide loading
      2018-04-05 liyuqian Flush before snap SkThreadedBMPDevice
      2018-04-05 skcms-skia-autoroll Roll third_party/externals/skcms/ 3cb9ba6ae..a7974d9f6 (3 commits)
      2018-04-04 bryct Update 'Working in a Chromium repo' documentation.
      2018-04-05 kjlubick Avoid nonsortable rects in drawRect/drawOval
      2018-04-04 bsalomon Remove deprectated GrContext::MakeGL overloads that take raw ptr
      2018-04-05 bsalomon Add maxTextureSize()/maxRenderTargetSize() to GrContext
      2018-04-05 fmalita Viewer SVG support
      2018-04-04 bungeman Via*::draw to finish before checking.
      2018-04-05 reed replace size-alignment assert with round-down
      2018-04-05 angle-skia-autoroll Roll third_party/externals/angle2/ bc54342bf..dd196e0bc (14 commits)
      2018-04-05 skcms-skia-autoroll Roll third_party/externals/skcms/ d26d270c8..3cb9ba6ae (7 commits)
      2018-04-02 halcanary SkPDF: implement xheight for type3 fonts
      2018-04-05 robertphillips Add GrBackendTexture/RenderTarget accessors to SkSurface
      2018-04-05 robertphillips Add SK_API to SkSurfaceCharacterization
      2018-04-03 halcanary experimental/tools: minor code cleanup
      (...)
      
      Created with:
        roll-dep src/third_party/skia
      13fd804e
    • B
      Remove named field initialization of GrVkImageInfo (#4972) · 44bff286
      Brian Osman 提交于
      This syntax fails in conjunction with the new 6-argument constructor
      that's been added. Fields were already initialized in the correct
      order, so simply omit the field names. Once the constructor lands,
      this will switch to calling that.
      44bff286
    • R
      4db7a006
  4. 11 4月, 2018 9 次提交
    • A
      Roll dart sdk again. Previous roll required 23ae4fa098 revert. (#4966) · ed303c62
      Alexander Aprelev 提交于
      * Roll dart sdk again. Previous roll required 23ae4fa098 revert.
      
      Changes since last roll:
      ```
      23ae4fa098 Revert "[VM] Reduce Smi size to 32 bit on 64 bit platforms"
      6ab6d1eda9 Suppress fromRect its only available in DOMRect and not in ClientRect - will open bug to fix this issue.
      f4621b1898 [tests hot-reload] Remove obsolete crash entry in status file (issue #31660).
      f3cec061eb Capture type variables in global NSM stubs
      2247843f48 Update checked-in SDKs to 2.0.0-dev.47.0
      34be5de0c7 Fixed _DomRect class to map to both ClientRect and DOMRect for browser backward compat.
      5c508ff785 Update more IdentifierContext type reference recovery
      8054721512 Move DeclaredVariables to a better location
      3851591642 [infra] Keep comments intact when updating status files.
      7764e6962e Initial API to build analysis contexts (replaces ContextLocator.locateContexts)
      5ea271bb01 Clean up documentation of implicit new/const insertions tests.
      cf93009caf Removed the magic const feature from implicit-creation.md
      bd39320b3b Recover from error on undefined continue label.
      5d89a1ac32 Add tests for mixin application constructor forwarding.
      e6962790a1 Use import URIs when invalidating files
      23c59bd819 Fix compare_failures
      290cc58e71 Use actual receiver when error-wrapping a null-aware property get.
      34763bc4c9 Reland "[VM] Introduction of type testing stubs - Part 1-4"
      a86b864fa9 Handle updated .packages in incremental compiler
      f555ae505a Trust type annotations in strong mode
      0a4a3bed68 When cloning YieldStatement, copy the flags
      91bbc798fa Skip abstract forwarding stubs
      7689dc9e06 Bring in the latest pub_semver
      f71d204185 Fix expected type in substByContext
      5e99872770 Improve missing/invalid type reference recovery
      899dbe4dae Forward type arguments in one-shot interceptors.
      1fd3011f47 dart2js: Add more whole-program information to dump-info
      5e23c2843d Revert "[infra] Temporarily disable Windows SDK builder on CQ"
      2471888d4a Serialize any MethodInvocation as possible const.
      b430570364 dart2js: handle constant casts with type variable substitutions
      3575b810b3 Only add const in a constant context (issue 32819)
      09f7d2aee5 dart2js: naive support for instantiations in constants - ignore the actual instantiation
      4dd5e6e6ad js_runtime: fix _JsonMap keys list type
      71ffe976a9 Correctly handle constant fields when computing constness (take 2)
      d58b0e2d44 [VM] Mark bigint test slow after small Smi change
      1e997ee6b7 Revert "Reland "[VM] Introduction of type testing stubs - Part 1-4""
      00097adce0 Remove reference to deprecated setter
      cb065a116f [infra] Update checked-in SDK version to 2.0.0-dev.46.0
      0e9a77a360 [VM] Reduce Smi size to 32 bit on 64 bit platforms
      34bfefd508 [gardening] Update status file
      969c0de335 Avoid crash on EOF error in file with Windows line encoding
      8054409a02 Reland "[VM] Introduction of type testing stubs - Part 1-4"
      ```
      
      * Update license hash
      ed303c62
    • A
    • C
      Revert "Support multiple shells in a single process. (#4932)" (#4964) · 9199b40f
      Chinmay Garde 提交于
      This reverts commit 6baff4c8.
      9199b40f
    • C
      Support multiple shells in a single process. (#4932) · 6baff4c8
      Chinmay Garde 提交于
      * Support multiple shells in a single process.
      
      The Flutter Engine currently works by initializing a singleton shell
      instance. This shell has to be created on the platform thread. The shell
      is responsible for creating the 3 main threads used by Flutter (UI, IO,
      GPU) as well as initializing the Dart VM. The shell, references to task
      runners of the main threads as well as all snapshots used for VM
      initialization are stored in singleton objects. The Flutter shell only
      creates the threads, rasterizers, contexts, etc. to fully support a
      single Flutter application. Current support for multiple Flutter
      applications is achieved by making multiple applications share the same
      resources (via the platform views mechanism).
      
      This scheme has the following limitations:
      
      * The shell is a singleton and there is no way to tear it down. Once you
        run a Flutter application in a process, all resources managed by it
        will remain referenced till process termination.
      * The threads on which the shell performs its operations are all
        singletons. These threads are never torn down and multiple Flutter
        applications (if present) have to compete with one another on these
        threads.
      * Resources referenced by the Dart VM are leaked because the VM isn't
        shutdown even when there are no more Flutter views.
      * The shell as a target does not compile on Fuchsia. The Fuchsia content
        handler uses specific dependencies of the shell to rebuild all the
        shell dependencies on its own. This leads to differences in frame
        scheduling, VM setup, service protocol endpoint setup, tracing, etc..
        Fuchsia is very much a second class citizen in this world.
      * Since threads and message loops are managed by the engine, the engine
        has to know about threading and platform message loop interop on each
        supported platform.
      
      Specific updates in this patch:
      
      * The shell is no longer a singleton and the embedder holds the unique
        reference to the shell.
      * Shell setup and teardown is deterministic.
      * Threads are no longer managed by the shell. Instead, the shell is
        given a task runner configuration by the embedder.
      * Since the shell does not own its threads, the embedder can control
        threads and the message loops operating on these threads. The shell is
        only given references to the task runners that execute tasks on these
        threads.
      * The shell only needs task runner references. These references can be
        to the same task runner. So, if the embedder thinks that a particular
        Flutter application would not need all the threads, it can pass
        references to the same task runner. This effectively makes Flutter
        application run in single threaded mode. There are some places in the
        shell that make synchronous calls, these sites have been updated to
        ensure that they don’t deadlock.
      * The test runner and the headless Dart code runner are now Flutter
        applications that are effectively single threaded (since they don’t
        have rendering concerns of big-boy Flutter application).
      * The embedder has to guarantee that the threads and outlive the shell.
        It is easy for the embedder to make that guarantee because shell
        termination is deterministic.
      * The embedder can create as many shell as it wants. Typically it
        creates a shell per Flutter application with its own task runner
        configuration. Most embedders obtain these task runners from threads
        dedicated to the shell. But, it is entirely possible that the embedder
        can obtain these task runners from a thread pool.
      * There can only be one Dart VM in the process. The numerous shell
        interact with one another to manage the VM lifecycle. Once the last
        shell goes away, the VM does as well and hence all resources
        associated with the VM are collected.
      * The shell as a target can now compile and run on Fuchsia. The current
        content handler has been removed from the Flutter engine source tree
        and a new implementation has been written that uses the new shell
        target.
      * Isolate management has been significantly overhauled. There are no
        owning references to Dart isolates within the shell. The VM owns the
        only strong reference to the Dart isolate. The isolate that has window
        bindings is now called the root isolate. Child isolates can now be
        created from the root isolate and their bindings and thread
        configurations are now inherited from the root isolate.
      * Terminating the shell terminates its root isolates as well as all the
        isolates spawned by this isolate. This is necessary be shell shutdown
        is deterministic and the embedder is free to collect the threads on
        which the isolates execute their tasks (and listen for mircrotasks
        flushes on).
      * Launching the root isolate is now significantly overhauled. The shell
        side (non-owning) reference to an isolate is now a little state
        machine and illegal state transitions should be impossible (barring
        construction issues). This is the only way to manage Dart isolates in
        the shell (the shell does not use the C API is dart_api.h anymore).
      * Once an isolate is launched, it must be prepared (and hence move to
        the ready phase) by associating a snapshot with the same. This
        snapshot can either be a precompiled snapshot, kernel snapshot, script
        snapshot or source file. Depending on the kind of data specified as a
        snapshot as well as the capabilities of the VM running in the process,
        isolate preparation can fail preparation with the right message.
      * Asset management has been significantly overhauled. All asset
        resolution goes through an abstract asset resolver interface. An asset
        manager implements this interface and manages one or more child asset
        resolvers. These asset resolvers typically resolve assets from
        directories, ZIP files (legacy FLX assets if provided), APK bundles,
        FDIO namespaces, etc…
      * Each launch of the shell requires a separate and fully configured
        asset resolver. This is necessary because launching isolates for the
        engine may require resolving snapshots as assets from the asset
        resolver. Asset resolvers can be shared by multiple launch instances
        in multiple shells and need to be thread safe.
      * References to the command line object have been removed from the
        shell. Instead, the shell only takes a settings object that may be
        configured from the command line. This makes it easy for embedders and
        platforms that don’t have a command line (Fuchsia) to configure the
        shell. Consequently, there is only one spot where the various switches
        are read from the command line (by the embedder and not the shell) to
        form the settings object.
      * All platform now respect the log tag (this was done only by Android
        till now) and each shell instance have its own log tag. This makes
        logs from multiple Flutter application in the same process (mainly
        Fuchsia) more easily decipherable.
      * The per shell IO task runner now has a new component that is
        unfortunately named the IOManager. This component manages the IO
        GrContext (used for asynchronous texture uploads) that cooperates with
        the GrContext on the GPU task runner associated with the shell. The
        IOManager is also responsible for flushing tasks that collect Skia
        objects that reference GPU resources during deterministic shell
        shutdown.
      * The embedder now has to be careful to only enable Blink on a single
        instance of the shell. Launching the legacy text layout and rendering
        engine multiple times is will trip assertions. The entirety of this
        runtime has been separated out into a separate object and can be
        removed in one go when the migration to libtxt is complete.
      * There is a new test target for the various C++ objects that the shell
        uses to interact with the Dart VM (the shell no longer use the C API
        in dart_api.h). This allows engine developers to test VM/Isolate
        initialization and teardown without having the setup a full shell
        instance.
      * There is a new test target for the testing a single shell instances
        without having to configure and launch an entire VM and associated
        root isolate.
      * Mac, Linux & Windows used to have different target that created the
        flutter_tester referenced by the tool. This has now been converted
        into a single target that compiles on all platforms.
      * WeakPointers vended by the fml::WeakPtrFactory(notice the difference
        between the same class in the fxl namespace) add threading checks on
        each use. This is enabled by getting rid of the “re-origination”
        feature of the WeakPtrFactory in the fxl namespace. The side effect of
        this is that all non-thread safe components have to be created, used
        and destroyed on the same thread. Numerous thread safety issues were
        caught by this extra assertion and have now been fixed.
        * Glossary of components that are only safe on a specific thread (and
          have the fml variants of the WeakPtrFactory):
          * Platform Thread: Shell
          * UI Thread: Engine, RuntimeDelegate, DartIsolate, Animator
          * GPU Thread: Rasterizer, Surface
          * IO Thread: IOManager
      
      This patch was reviewed in smaller chunks in the following pull
      requests. All comments from the pulls requests has been incorporated
      into this patch:
      
      * flutter/assets: https://github.com/flutter/engine/pull/4829
      * flutter/common: https://github.com/flutter/engine/pull/4830
      * flutter/content_handler: https://github.com/flutter/engine/pull/4831
      * flutter/flow: https://github.com/flutter/engine/pull/4832
      * flutter/fml: https://github.com/flutter/engine/pull/4833
      * flutter/lib/snapshot: https://github.com/flutter/engine/pull/4834
      * flutter/lib/ui: https://github.com/flutter/engine/pull/4835
      * flutter/runtime: https://github.com/flutter/engine/pull/4836
      * flutter/shell: https://github.com/flutter/engine/pull/4837
      * flutter/synchronization: https://github.com/flutter/engine/pull/4838
      * flutter/testing: https://github.com/flutter/engine/pull/4839
      6baff4c8
    • A
      Roll dart to 7764e6962e22afcf4b58c4e3cef3147330f3c884. (#4960) · 31c5bb42
      Alexander Aprelev 提交于
      * Roll dart to 7764e6962e22afcf4b58c4e3cef3147330f3c884.
      
      Changes since last roll:
      
      ```
      7764e6962e Initial API to build analysis contexts (replaces ContextLocator.locateContexts)
      5ea271bb01 Clean up documentation of implicit new/const insertions tests.
      cf93009caf Removed the magic const feature from implicit-creation.md
      bd39320b3b Recover from error on undefined continue label.
      5d89a1ac32 Add tests for mixin application constructor forwarding.
      e6962790a1 Use import URIs when invalidating files
      23c59bd819 Fix compare_failures
      290cc58e71 Use actual receiver when error-wrapping a null-aware property get.
      34763bc4c9 Reland "[VM] Introduction of type testing stubs - Part 1-4"
      a86b864fa9 Handle updated .packages in incremental compiler
      f555ae505a Trust type annotations in strong mode
      0a4a3bed68 When cloning YieldStatement, copy the flags
      91bbc798fa Skip abstract forwarding stubs
      7689dc9e06 Bring in the latest pub_semver
      f71d204185 Fix expected type in substByContext
      5e99872770 Improve missing/invalid type reference recovery
      899dbe4dae Forward type arguments in one-shot interceptors.
      1fd3011f47 dart2js: Add more whole-program information to dump-info
      5e23c2843d Revert "[infra] Temporarily disable Windows SDK builder on CQ"
      2471888d4a Serialize any MethodInvocation as possible const.
      b430570364 dart2js: handle constant casts with type variable substitutions
      3575b810b3 Only add const in a constant context (issue 32819)
      09f7d2aee5 dart2js: naive support for instantiations in constants - ignore the actual instantiation
      4dd5e6e6ad js_runtime: fix _JsonMap keys list type
      71ffe976a9 Correctly handle constant fields when computing constness (take 2)
      d58b0e2d44 [VM] Mark bigint test slow after small Smi change
      1e997ee6b7 Revert "Reland "[VM] Introduction of type testing stubs - Part 1-4""
      00097adce0 Remove reference to deprecated setter
      cb065a116f [infra] Update checked-in SDK version to 2.0.0-dev.46.0
      0e9a77a360 [VM] Reduce Smi size to 32 bit on 64 bit platforms
      34bfefd508 [gardening] Update status file
      969c0de335 Avoid crash on EOF error in file with Windows line encoding
      8054409a02 Reland "[VM] Introduction of type testing stubs - Part 1-4"
      ```
      
      * Ignore freetype2 in skia since 'we use our own version'
      
      * Update license hash
      31c5bb42
    • J
      Avoid copying the contents of large platform message responses (#4947) · c8e4c698
      Jason Simmons 提交于
      Assets are loaded via platform messages, and currently asset payloads are
      being copied into Dart typed data buffers.  This change uses external
      typed data objects that wrap the existing buffer if copying would be
      expensive.
      
      See https://github.com/flutter/flutter/issues/16291
      c8e4c698
    • E
      Update to use new vulkan GrBackendRenderTarget ctor. (#4962) · 5ff52729
      egdaniel 提交于
      This moves to the new skia ctor for vulkan GrBackendRenderTarget which doesn't take a stencil count since vulkan doesn't bind stencil and render target together like GL does with framebuffer so it is not needed.
      5ff52729
    • E
      Update to use new vulkan GrBackendRenderTarget ctor (part 2) (#4963) · 0c8993a1
      egdaniel 提交于
      This moves to the new skia ctor for vulkan GrBackendRenderTarget which doesn't take a stencil count since vulkan doesn't bind stencil and render target together like GL does with framebuffer so it is not needed.
      
      This is the same idea as pull, https://github.com/flutter/engine/pull/4962, but the github UI was only allowing me to change one file via the online edit :(
      0c8993a1
    • B
      132ebdda
  5. 10 4月, 2018 8 次提交
    • R
      Roll src/third_party/skia/ 9874bf1bc..52e16d984 (135 commits) (#4958) · 11882ab9
      Ravi Mistry 提交于
      https://skia.googlesource.com/skia.git/+log/9874bf1bcecd..52e16d984898
      
      $ git log 9874bf1bc..52e16d984 --date=short --no-merges --format='%ad %ae %s'
      2018-04-10 egdaniel Update getBackendInfo calls on GrBackendTexture to support VkImageLayout better.
      2018-04-10 caryclark one more path is rect bug
      2018-04-09 caryclark fix path to rect when missing close verb
      2018-04-09 benjaminwagner Omit skbug6653 on internal device.
      2018-04-09 brianosman Remove SkDEBUGFAIL for non-invertible XYZ matrix
      2018-04-09 angle-skia-autoroll Roll third_party/externals/angle2/ 6c59e4a15..0ce016c1b (2 commits)
      2018-04-06 reed identify interesting cubic points
      2018-04-09 mtklein use commonPaint for all raster pipeline
      2018-04-06 benjaminwagner Upgrade Debian9 bots to 9.4.
      2018-04-09 bsalomon Reland "Remove deprectated GrContext::MakeGL overloads that take raw ptr"
      2018-04-09 skcms-skia-autoroll Roll third_party/externals/skcms/ 8a727815d..16a9cebff (1 commit)
      2018-04-06 csmartdalton ccpr: Remove WindMethod from GrCCCoverageProcessor
      2018-04-09 angle-skia-autoroll Roll third_party/externals/angle2/ 6c7ab7fe8..6c59e4a15 (3 commits)
      2018-04-06 bsalomon Add canvas2D fast paths to new read/write pixels code paths.
      2018-04-09 egdaniel Make sure GrBackendTextures are valid before starting to do things with them
      2018-04-06 brianosman Remove code that was only used by the old debugger
      2018-04-08 csmartdalton Implement Sk2f::Store2
      2018-04-09 angle-skia-autoroll Roll third_party/externals/angle2/ 5ae64c94d..6c7ab7fe8 (1 commit)
      2018-04-08 herb Revert "Remove all notion of transport from the API."
      2018-04-07 angle-skia-autoroll Roll third_party/externals/angle2/ e547aac75..5ae64c94d (1 commit)
      2018-04-05 halcanary SkPDF: smarter Jpeg when libjpeg-turbo is present
      2018-04-07 angle-skia-autoroll Roll third_party/externals/angle2/ d2488aba5..e547aac75 (2 commits)
      2018-04-06 herb Better layer tracking fidelity
      2018-04-06 angle-skia-autoroll Roll third_party/externals/angle2/ b8e396609..d2488aba5 (2 commits)
      2018-04-06 skcms-skia-autoroll Roll third_party/externals/skcms/ 24c91d143..8a727815d (1 commit)
      2018-04-06 brianosman Remove scanlineOrder switch statements that always do the same thing
      2018-04-06 reed detect if makeOffset failed
      2018-04-05 csmartdalton vulkan: Fix an optimus-related failure with vkEnumeratePhysicalDevices
      2018-04-06 egdaniel Make generated effects from sksl fp files not need SK_SUPPORT_GPU
      2018-04-05 herb Remove all notion of transport from the API.
      2018-04-04 halcanary SkRegion: Use less memory for SkRegion::Oper
      2018-04-06 brianosman Remove old debugger (it no longer builds)
      2018-04-06 liyuqian Revert "Exercise the threaded backend in test bots"
      2018-04-06 egdaniel Remove unneeded SK_SUPPORT_GPU checks in gpu only files.
      2018-04-06 halcanary Region Op Fuzzer
      2018-04-05 csmartdalton ccpr: Make curve corners more seamless
      2018-04-05 brianosman Remove SK_SUPPORT_LEGACY_BLURMASKFILTER
      2018-04-06 bsalomon Add versions of MakeGL() that don't require include GrGLInterface.h in order to use the GrGLMakeNativeInterface
      2018-04-06 egdaniel Don't use GrPixelConfig value as proxy for valid on GrBackendSurface.
      2018-04-05 liyuqian Exercise the threaded backend in test bots
      2018-04-06 angle-skia-autoroll Roll third_party/externals/angle2/ c3755fc56..b8e396609 (1 commit)
      2018-04-06 update-docs Update markdown files
      2018-04-05 angle-skia-autoroll Roll third_party/externals/angle2/ dd196e0bc..c3755fc56 (5 commits)
      2018-04-05 caryclark remove SK_IGNORE_TO_STRING
      2018-03-29 bungeman Distinguish between glyphs with empty path and no path.
      2018-04-05 skcms-skia-autoroll Roll third_party/externals/skcms/ 6959d4597..24c91d143 (1 commit)
      2018-04-05 skcms-skia-autoroll Roll third_party/externals/skcms/ d75edb2e3..6959d4597 (1 commit)
      2018-04-05 skcms-skia-autoroll Roll third_party/externals/skcms/ a7974d9f6..d75edb2e3 (1 commit)
      2018-04-05 fmalita Clip SlideDir slides to their declared dimensions
      2018-04-05 bungeman Mac to better serialize OTTO fonts.
      2018-04-05 robertphillips Revert "Remove deprectated GrContext::MakeGL overloads that take raw ptr"
      2018-04-05 bsalomon Remove SK_DISABLE_TEXTURE_OP_AA
      2018-04-05 fmalita [viewer] Consolidate external slide loading
      2018-04-05 liyuqian Flush before snap SkThreadedBMPDevice
      2018-04-05 skcms-skia-autoroll Roll third_party/externals/skcms/ 3cb9ba6ae..a7974d9f6 (3 commits)
      2018-04-04 bryct Update 'Working in a Chromium repo' documentation.
      2018-04-05 kjlubick Avoid nonsortable rects in drawRect/drawOval
      2018-04-04 bsalomon Remove deprectated GrContext::MakeGL overloads that take raw ptr
      2018-04-05 bsalomon Add maxTextureSize()/maxRenderTargetSize() to GrContext
      2018-04-05 fmalita Viewer SVG support
      2018-04-04 bungeman Via*::draw to finish before checking.
      2018-04-05 reed replace size-alignment assert with round-down
      2018-04-05 angle-skia-autoroll Roll third_party/externals/angle2/ bc54342bf..dd196e0bc (14 commits)
      2018-04-05 skcms-skia-autoroll Roll third_party/externals/skcms/ d26d270c8..3cb9ba6ae (7 commits)
      2018-04-02 halcanary SkPDF: implement xheight for type3 fonts
      2018-04-05 robertphillips Add GrBackendTexture/RenderTarget accessors to SkSurface
      2018-04-05 robertphillips Add SK_API to SkSurfaceCharacterization
      2018-04-03 halcanary experimental/tools: minor code cleanup
      2018-04-04 brianosman Workaround for lack of ESSL3 external image extension on older Samsung devices
      2018-04-05 caryclark tweak SkImage documentation
      2018-04-05 robertphillips Fix iOS bot in Chrome CQ
      2018-04-05 update-docs Update markdown files
      2018-04-04 bsalomon Avoid calling glGetString(GL_EXTENSIONS) on core profiles
      2018-04-04 bsalomon Stop using clear-as-draw workaround on newer Intel drivers on macOS
      2018-04-04 liyuqian Ensure that pointers/arrays are valid until flush in threaded backend
      2018-04-04 benjaminwagner Add loongson3a Build jobs.
      2018-04-04 robertphillips Add GrBackendTexture accessor to SkImage (take 2)
      2018-04-04 reed move SkIPoint16 to private header
      2018-04-04 benjaminwagner Update mips64el_toolchain_linux to GCC 7
      2018-04-04 fmalita Fix SkLocalMatrixShader nesting semantics
      2018-04-04 egdaniel Make sure we set the origin when initDescForDstCopy fails
      2018-04-04 fmalita Banish SkShaderBase::isRasterPipelineOnly()
      2018-03-22 liyuqian Fix drawBitmapRect in the threaded backend
      2018-04-03 mtklein add Mac ASAN bots
      2018-04-04 skcms-skia-autoroll Roll skia/third_party/externals/skcms/ 7dd7eed65..d26d270c8 (1 commit)
      2018-04-04 djsollen Tag the unique keys of lazy images.
      2018-04-04 robertphillips Add SkSurfaceCharacterization operator== && !=
      2018-04-04 bsalomon Revert "Revert "Make SkSL GLSL generator declare sk_FragColor inout when EXT fb fetch is used.""
      2018-04-04 angle-skia-autoroll Roll skia/third_party/externals/angle2/ 5d232d53b..bc54342bf (6 commits)
      2018-04-04 egdaniel Don't use the inner radius when not stroking in DIEllipse
      2018-04-04 bsalomon Revert "Make SkSL GLSL generator declare sk_FragColor inout when EXT fb fetch is used."
      2018-04-03 benjaminwagner Add mips64el_toolchain_linux asset.
      2018-04-03 bsalomon Make SkSL GLSL generator declare sk_FragColor inout when EXT fb fetch is used.
      2018-04-04 egdaniel Handle perspective scales in GrPathUtil scaleToleranceToSrc
      2018-04-03 robertphillips Hide GrPixelConfig in SkSurfaceCharacterization
      2018-04-04 skcms-skia-autoroll Roll skia/third_party/externals/skcms/ 770177dc9..7dd7eed65 (1 commit)
      2018-04-03 khushalsagar Add API for SkTextBlob serialization into caller's memory.
      2018-04-03 herb Clean up buffering and serializatoin.
      2018-04-03 egdaniel Check if fan point is finite in GrAAConvexPathRenderer.
      2018-04-03 caryclark fix global method indentation
      (...)
      
      Created with:
        roll-dep src/third_party/skia
      11882ab9
    • A
      6474647f
    • A
      Perform exit from server, not starter as awaiting from starter causes hanging... · eea6197a
      Alexander Aprelev 提交于
      Perform exit from server, not starter as awaiting from starter causes hanging in incremental compilation scenario. (#4955)
      
      eea6197a
    • A
      Revert "Add support for measuring, combining, and getting bounds of Path objects " (#4954) · 3cc6c672
      Alexander Markov 提交于
      * Revert "Add support for measuring, combining, and getting bounds of Path objects  (#4799)"
      
      This reverts commit 8c00101a, as it broke engine build bots on Linux and Windows.
      3cc6c672
    • A
      Revert "Roll Dart to ef926f98f525b085e1488be8c42b1c3f0a24c50d" (#4953) · 44927304
      Alexander Markov 提交于
      Engine build is currently broken, so reverting Dart SDK roll for now.
      
      * Revert "Roll Dart to ef926f98f525b085e1488be8c42b1c3f0a24c50d (#4951)"
      This reverts commit 7be9d6f3.
      44927304
    • A
    • A
      7be9d6f3
    • D
      Add support for measuring, combining, and getting bounds of Path objects (#4799) · 8c00101a
      Dan Field 提交于
      * 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
      8c00101a
  6. 07 4月, 2018 4 次提交
  7. 06 4月, 2018 2 次提交