1. 28 1月, 2017 1 次提交
  2. 14 8月, 2016 1 次提交
    • A
      //flutter/content_handler code complete (#2925) · 2c5a71e7
      Adam Barth 提交于
      This patch should contain all the code we need to run Flutter on
      Fuchsia's software framebuffer (without text). I haven't actually tried
      running the code, so I'm sure it doesn't work yet.
      2c5a71e7
  3. 13 8月, 2016 2 次提交
  4. 12 8月, 2016 1 次提交
    • A
      Simplify Dart application startup (#2910) · cee7fef7
      Adam Barth 提交于
      There are now three ways to start Dart applications:
      
      1) From a precompiled snapshot
      2) From a snapshot
      3) From source
      
      When loading from source, we no longer use the complex data pipe /
      dependency catcher mechanism. Instead, we just load the source
      synchronously from the file system. This is appropriate because running
      from source is used only during development and not during production.
      
      The previous design was built assuming we would want to run from source
      over the network, which meant we needed to be able to load source
      asynchronously over a high latency channel.
      cee7fef7
  5. 08 8月, 2016 1 次提交
  6. 04 8月, 2016 3 次提交
  7. 11 3月, 2016 1 次提交
    • J
      Delete DartState during isolate shutdown · 0ce96c8a
      Jason Simmons 提交于
      This solves two problems:
      * UIDartState was being deleted during destruction of DartController after the
        isolate had been shut down.  The UIDartState held persistent handles to Dart
        objects, and deleting them when the isolate no longer exists caused an
        assertion failure.
      * DartStates created for secondary isolates were never being deleted
      
      Fixes https://github.com/flutter/flutter/issues/2549
      0ce96c8a
  8. 03 3月, 2016 1 次提交
  9. 11 2月, 2016 1 次提交
  10. 19 1月, 2016 2 次提交
    • A
      Remove integration between tonic and WTFString · 0140555b
      Adam Barth 提交于
      We used to share memory between Dart strings and WTF::String objects by
      way of the Dart externalized strings. That used to be important when the
      DOM shared many strings between C++ and Dart. However, now that we don't
      retain strings in C++ much anymore, we don't need this complexity.
      
      This patch removes DartStringCache and the integration. It also unwinds
      several cases where we were converting back and forth between
      WTF::String and std::string for no reason. Now we use std::string more
      consistently.
      
      For the case of ParagraphBuilder::addText, we now take a raw const
      char*, which more closely matches the API the DartVM exposes. That means
      we do a single copy out of the VM and into the render tree at that
      point.
      0140555b
    • A
      Move microtask queue into tonic · 1f4416f8
      Adam Barth 提交于
      Moving the microtask queue into tonic solves three problems:
      
      1) Removes three levels of indirection when invoking microtask
      callbacks.
      2) Removes the sky/engine/dom directory entirely.
      3) Removes the last client of the (inefficient) DartValue class.
      1f4416f8
  11. 02 12月, 2015 1 次提交
  12. 28 10月, 2015 2 次提交
  13. 25 10月, 2015 1 次提交
    • A
      Remove a bunch of dead code · 01c14ff7
      Adam Barth 提交于
      I left this code along in my uber patch to remove the DOM and CSS, but it's
      just as dead. Also, move lone files out of dead directories into more sensible
      places.
      01c14ff7
  14. 23 10月, 2015 1 次提交
  15. 13 10月, 2015 1 次提交
  16. 24 9月, 2015 1 次提交
    • M
      Replace C++ UpdateTask with an empty dart version, loaded as a snapshot. · 81b2b81b
      Matt Perry 提交于
      This adds a new placeholder dart package updater in sky/packages. This is built
      into a snapshot and compiled into the Sky engine binary using the same
      mechanism as the Dart isolate.
      
      I also added a SkyHeadless class, similar to SkyView, used for running Dart
      code without a view.
      81b2b81b
  17. 14 8月, 2015 1 次提交
  18. 17 7月, 2015 1 次提交
  19. 14 7月, 2015 1 次提交
  20. 02 7月, 2015 2 次提交
  21. 01 7月, 2015 1 次提交
  22. 26 6月, 2015 2 次提交
    • A
      Support snapshots in sky_shell (again) · 570cfb62
      Adam Barth 提交于
      Unbreak support for snapshots now that we have our offline Dart loader. Also,
      wire up support for snapshots in sky_shell on Linux.
      
      TBR=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1212623002.
      570cfb62
    • A
      Make it possible to run Sky apps offline · 1a1ef489
      Adam Barth 提交于
      This CL makes it possible to run Sky apps offline by introducing new
      DartLibraryProvider subclasses, specifically one that can load directly from
      the file system. A future CL will expand this functionality to work with asset
      bundles as well.
      
      Currently, the only platform that uses this functionality is Linux, which can
      now load a simple Sky app without even loading a network stack. Making this
      work on other platforms is work for future CLs.
      
      TBR=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1203143004.
      1a1ef489
  23. 25 6月, 2015 1 次提交
    • A
      Factor DartLibraryProvider out of DartLoader · fa627b4b
      Adam Barth 提交于
      This CL factors the network interactions out of DartLoader into a
      DartLibraryProvider interface, paving the way for other library providers
      (e.g., offline).
      
      As part of this CL, I've renamed DartLoader to DartLibraryLoader and moved the
      class into tonic, where it can't have any direct network dependencies.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1202283004.
      fa627b4b
  24. 24 6月, 2015 1 次提交
  25. 04 6月, 2015 1 次提交
  26. 22 5月, 2015 1 次提交
  27. 20 5月, 2015 3 次提交
  28. 21 2月, 2015 2 次提交
    • A
      Add a basic sky-element custom element · 16db84fd
      Adam Barth 提交于
      After this CL, you can use <sky-element> to describe custom elements. The
      current iteration is very basic and is hardcoded to "example", but its a start.
      
      This CL renames the |init| function to |_init| to prevent importers from
      calling it directly. Also, we now pass the <script> element to |_init| to give
      some context.
      
      R=ojan@chromium.org, eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/950493003
      16db84fd
    • E
      Allow multiple dart <script> tags in .sky files · c78cea7e
      Eric Seidel 提交于
      This does several things:
      1.  Teaches sky about asynchronous script execution. Previously once all imports
      were loaded and the script text was available, we executed a script and assumed
      it completed synchronously.  We left the parser loop to do so, but that was fine
      as the next chunk from the background thread would resume the parser.  In this
      change scripts now load and execute separately.  The "load" step may trigger
      further dart import loads which may cause the execution to happen asynchronously
      which required teaching both the DartController and the HTMLScriptRunner to
      take callbacks to allow HTMLDocumentParser to know to continue parsing after
      the Dart script has resolved its imports and executed.
      
      This required re-working some of how the parser executes scripts and I
      re-purposed isWaitingForScripts to include "is the parser blocked" where
      as before it was limited only to "does the treebuilder have a script", even
      though the imports system may have had pending scripts as well.
      
      I made HTMLScriptRunner live only as long as the script it was executing
      since it only contained per-script state at this point.
      
      2.  Fixed an error reporting bug whereby we would not show errors when "init"
      failed to execute, only "main".  This required using the dart_mirrors_api.h
      which required adding an include path to the core build. :(
      
      3.  Made it possible for a single sky file to contain multiple dart <script>
      tags.  Each <script> is a separate library and executes as
      soon as </script> is seen.  main or init is called for each.  This required
      mangling "urls" for these script blocks since Dart unique's libraries by urls.
      Before this change it may have been possible to do <import 'foo.sky'> and then
      <script>import 'foo.sky'</script> and have it work!?
      
      R=abarth@chromium.org
      BUG=
      
      Review URL: https://codereview.chromium.org/938623005
      c78cea7e
  29. 13 2月, 2015 1 次提交