Adam Barth
e22e75ea50
Merge pull request #2302 from abarth/rm_scoped_ptr
...
Remove almost all uses of base::scoped_ptr
2016-01-27 08:38:41 -08:00
Adam Barth
142c5dc5ec
Remove almost all uses of base::scoped_ptr
...
We now use std::unique_ptr more consistently.
2016-01-27 01:05:47 -08:00
Adam Barth
c3a78a1796
Remove dependencies on ui/gfx/geometry
...
We have enough geometry classes kicking around. We don't need the
ui/gfx/geometry types too.
2016-01-26 23:57:20 -08:00
Chinmay Garde
bb2affa7e5
iOS: Add an explicit FLX resource copy phase to the framework target
...
Also asserts on there being an FLX bundle at all
2016-01-26 14:34:21 -08:00
Collin Jackson
8d056e02a6
Use the same registration process as GCM for Firebase
2016-01-22 18:23:22 -08:00
Matt Perry
0ee5a29163
Support dynamic registration of mojo services on Android
...
SkyApplication now reads service info from a services.json file bundled
with the apk. For each service, it registers a method that invokes
connectToService on a named class. This way, third party services can
register themselves.
There's a corresponding change to flutter_tools to generate this
services.json when building an apk that depends on services.
2016-01-21 16:55:51 -05:00
Adam Barth
33d7553e39
Improve handling of window insets on Android
...
Now that we understand window insets, we don't need to hard-code the size of
the status bar. Also, convert the viewport metrics to be consistently in
physical pixels.
2016-01-21 11:24:17 -08:00
Adam Barth
0140555b54
Remove integration between tonic and WTFString
...
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.
2016-01-18 20:47:46 -08:00
Chinmay Garde
278af8d155
Path service implementation for iOS
2016-01-15 16:33:02 -08:00
Adam Barth
0b629d419f
Move //sky/compositor to //flow
...
Now that the compositor doesn't have any tricky deps, we can make it a
top-level project, which saves a bunch of typing.
2016-01-12 22:39:51 -08:00
Adam Barth
6d1af600b1
Trim unneeded depedendencies from sky/compositor
...
Now we just depend on Skia and Base, which makes the compositor easier
to understand.
Also, update our skia/ext/refptr.h to match the current version of the
code in Chromium. This version adds support for several useful C++11
patterns.
2016-01-12 22:02:08 -08:00
Adam Barth
bec6ad5d3f
Merge pull request #2178 from floitschG/handleRealTime
...
Add 'HandleRealTimeEvents' to window.
2016-01-12 12:25:13 -08:00
Collin Jackson
9d715b340a
Initial Firebase Flutter service implementation
2016-01-08 15:28:07 -08:00
Adam Barth
2e5d3c4977
Preroll rasterization
...
Prerolling the rasterization tasks reduces the number of render target
switches because we don't interrupt the main render target.
2016-01-08 13:17:13 -08:00
Jason Simmons
a9c22e9d8c
Initial work toward exposing the Java native interface APIs in Dart
2016-01-07 15:06:35 -08:00
Collin Jackson
0d4185b4f6
Fix typo in application identifier
2016-01-04 12:21:13 -08:00
Adam Barth
241fc21055
Don't destory the engine when detaching from the window
...
Reading the Android docs, it sounds like an android.view.View can re-attach to
the window after detaching. Previously, we destroyed the engine when we
detached from the window. Now we wait for the activity to be destroyed.
Hopefully fixes #997
2016-01-04 10:39:09 -08:00
Adam Barth
b4377c93dd
Remove RuntimeEnabledFeatures
...
This complex machinery made sense for Blink, which has hundreds of
developers. In our case, we're just moving around two bools. We can do
that in a much simpler way.
2015-12-29 22:27:18 -08:00
Jason Simmons
e55cf62694
Provide callbacks for activity pause and resume events
2015-12-15 18:01:36 -08:00
Florian Loitsch
8e1fc82146
Add 'FlushRealTimeEvents' to window.
2015-12-11 16:11:47 -08:00
Adam Barth
9c3aac7c2f
Remove //url
...
We don't use this anymore.
2015-12-11 11:20:23 -08:00
Jason Simmons
86e9b92679
Merge pull request #2168 from jason-simmons/roll_mojo_1210
...
Update to mojo b7c8cb12f05d3bc1351e65a4f9a84c5d1bcd1704
2015-12-11 09:43:46 -08:00
Jason Simmons
4a8402f7a1
Update to mojo b7c8cb12f05d3bc1351e65a4f9a84c5d1bcd1704
2015-12-10 16:21:45 -08:00
Chinmay Garde
4aa37e086a
Load the application from the flx bundle on iOS simulator
2015-12-10 16:05:52 -08:00
Hixie
9236be1360
Fix mouse on linux.
2015-12-09 10:16:23 -08:00
Adam Barth
198094e427
Fix crash with empty rect
...
Don't attempt to draw with a zero-by-zero window.
2015-12-08 14:46:35 -08:00
Hixie
07aa429175
Fix pointers in mojo.
...
Make the mojo implementation of the pointer packet logic fake move
events when it would send ups or downs without corresponding moves.
2015-12-08 13:07:31 -08:00
Matt Perry
4b6b031130
Merge pull request #2152 from mpcomplete/updater.on
...
Turn on FLX updater.
2015-12-08 16:06:42 -05:00
Adam Barth
535afcb092
Improve the crash fix in rasterizer_mojo
...
The previous version can still crash if we try to draw between the time when we
initialize context_ and when we actually make the MGL context current.
2015-12-08 12:51:50 -08:00
Matt Perry
6a2f58091f
Turn on FLX updater.
2015-12-08 14:41:32 -05:00
Adam Barth
535eb30855
Don't crash when RasterizerMojo::Draw happens without a context
...
If we don't have a context, we can't draw, so bail out early.
2015-12-08 11:32:30 -08:00
Jason Simmons
98427a2763
Tell Flutter about the host platform's locale
2015-12-07 14:27:22 -08:00
Chinmay Garde
4c8a138a29
Add a startup instant marker
2015-12-04 14:50:58 -08:00
Chinmay Garde
ee55c83609
Add startup trace events
2015-12-04 14:40:12 -08:00
Chinmay Garde
40bda43619
Name the main thread on mac
2015-12-04 14:25:11 -08:00
Chinmay Garde
95ba64b711
Allow enabling tracing in base without an instance of the tracing controller
2015-12-03 15:08:20 -08:00
Chinmay Garde
abe709013c
Start tracing in base before a tracing controller instance is available
2015-12-03 14:56:55 -08:00
Chinmay Garde
72814b2712
Ensure GL context as soon as the accelerated widget is available
2015-12-03 14:54:32 -08:00
George Kulakowski
a371cceee1
Make RequestFrame less janky in the no vsync case
...
Instead of spamming the MessageLoop, guess that 16ms is a good amount of
time to wait
2015-12-03 14:36:00 -08:00
Eric Seidel
231ee08fd7
Add support on Android for --trace-startup
...
Now 'flutter start --trace-startup' can trigger this tracing
on Android
@chinmaygarde
2015-12-03 12:25:26 -08:00
Eric Seidel
d91d60d449
Give the java ui thread a name in trace files
...
@abarth
2015-12-03 11:25:04 -08:00
Chinmay Garde
0bc34f0394
Allow tracing during startup
2015-12-03 11:01:45 -08:00
Florian Loitsch
5fa49e11ad
Merge pull request #2121 from floitschG/raster_pipe
...
Make rasterizer a mojo service.
2015-12-02 16:32:45 -08:00
Florian Loitsch
372355ad22
Make rasterizer a mojo service.
2015-12-02 16:28:39 -08:00
Eric Seidel
090d91fca9
Merge pull request #2126 from eseidelGoogle/startup_trace
...
Add various trace events for tracing startup
2015-12-02 12:29:47 -08:00
Eric Seidel
a92597ee07
Add various trace events for tracing startup
...
@abarth
2015-12-02 12:18:20 -08:00
Chinmay Garde
8b7ec29f18
Add back log statement used by Flutter tools to detect trace capture
2015-12-02 11:49:06 -08:00
Chinmay Garde
97efbef9dc
Merge pull request #2122 from chinmaygarde/master
...
Allow capturing unified (Dart and base) traces from observatory
2015-12-01 13:27:29 -08:00
Chinmay Garde
34696334a4
Allow capturing unified (Dart and base) traces from observatory
...
* Start capturing via <obs_host>:<obs_port>/flutter_startTracing
* Stop capturing via <obs_host>:<obs_port>/flutter_stopTracing
2015-12-01 13:26:53 -08:00
George Kulakowski
e08bd29aba
Flip y coordinate on FNL as a workaround
2015-11-30 14:10:07 -08:00