20087 Commits

Author SHA1 Message Date
Mikkel Nygaard Ravn
6aa49b5657 Add convenience accessors to get arguments from MethodCall w/o unchecked warnings (#3559) 2017-04-09 17:36:05 +02:00
Adam Barth
780112a8cc Fix build 2017-04-08 18:41:04 -07:00
Mikkel Nygaard Ravn
3035ed86e9 Update unit test to also handle null and zero-byte message differently (#3579) 2017-04-09 00:34:43 +02:00
Mikkel Nygaard Ravn
68194b8df8 Distinguish between null platform message and one with zero-byte payload (#3577) 2017-04-09 00:07:28 +02:00
Chris Bracken
8df4ec7a81 Use Foundation MIN,MAX in place of C++ std::min,max (#3578)
Maintains consistency with other Objective-C code in the engine and
allows us to eliminate a #include.
2017-04-08 12:58:27 -07:00
Jason Simmons
77a4fedeb4 Cache the typeface instead of the font data in the test font selector (#3576)
The font data includes attributes such as the font size and will be
different for each font description.

Fixes https://github.com/flutter/flutter/issues/9289
2017-04-07 18:13:07 -07:00
freiling
2a4af6906e Back Vulkan Rasterizer with Mozart View (#3568)
This version does not recycle buffers. It is meant only as an initial solution,
and the proper buffer recycling logic has been broken out into a separate change
2017-04-07 17:22:53 -07:00
Seth Ladd
9bc769a794 link to image in github (#3572) 2017-04-07 11:14:57 -07:00
P.Y. Laligand
2c892e134d Update the layout of framework sources in sky_engine to match the Dart SDK's layout. (#3575)
This allows the analyzer service to properly locate these files.
2017-04-07 10:04:32 -07:00
Jason Simmons
16a2fcd88d Roll Dart (#3573) 2017-04-06 14:27:24 -07:00
Chinmay Garde
981ef6f4b9 Make sure to hit the test font resolver in case of empty font family name. (#3571) 2017-04-06 12:38:10 -07:00
Chinmay Garde
aa0f2c84c7 Roll Skia to 45a00cee88c0ea8ea175694cb94b26748713fe36 and update licenses. (#3569) 2017-04-06 11:49:36 -07:00
Jason Simmons
b4088b6479 Backport JSONObject.wrap in order to support Jellybean (#3566) 2017-04-06 10:15:06 -07:00
mikejurka
9e59a83ac1 Add private Skia methods needed to support Vulkan (#3564) 2017-04-05 11:48:56 -07:00
Jakob Andersen
9c7ad5ad14 Copy Flutter.podspec to engine out directory. (#3560)
So `flutter run --local-engine=...` will work out of the box.

Fixes flutter/flutter#9154.
2017-04-05 09:16:53 +02:00
Michael Goderbauer
d0e48f2efb add paths_win.cc to FML (#3563)
* add paths_win.cc to FML

* update licenses
2017-04-04 14:00:51 -07:00
Michael Goderbauer
772a0db5e4 Partially port FML to Windows. (#3562)
* Partially port FML to Windows.

* Adds a message loop impl for Windows
* Ports `thread.cc` to Windows

All FML unittests are now passing on Windows.

FML as a whole does not compile on windows yet because `mapping.cc` imports `sys/mman.h`, which is not available on Windows and the replacement API for memory-mapped files is very different on Windows, see https://msdn.microsoft.com/en-us/library/windows/desktop/aa366556%28v=vs.85%29.aspx.

* update licenses

* review comments
2017-04-04 12:48:11 -07:00
Seigo Nonaka
6ee5922aee Support cmap tables with platform ID == 0 am: db1b6cb776
am: 008ef43100

Change-Id: Ib1e6808f542d75e06044908dc88b6e2ba3abfed7
2017-04-04 17:02:31 +00:00
Seigo Nonaka
008ef43100 Support cmap tables with platform ID == 0
am: db1b6cb776

Change-Id: I131af63678b32171b96299d8ded17baa7b6b09c4
2017-04-04 16:58:29 +00:00
Chris Bracken
5d9a642257 Update selection base when deleting surrogates (#3558)
Ensure selection base is updated when deleting surrogates

This fixes a bug in which the selection base was not updated when
deleting at index of the trailing char of a Unicode surrogate,
introduced in 38664ac32223228476166b9050ab400c102fda05.

Minor refactor to consolidate logic around NSRange.
2017-04-03 23:12:02 -07:00
Chris Bracken
5b51394b66 Handle Unicode surrogates in FlutterTextInputView (#3557)
* Handle Unicode surrogates in FlutterTextInputView

Fixes a bug introduced in 38664ac32223228476166b9050ab400c102fda05.
2017-04-03 21:49:30 -07:00
Michael Goderbauer
878f0ff09d Roll FTL to f1357b6eaa9a23cffec1645dfeba610b5f926b1d (#3556) 2017-04-03 18:17:37 -07:00
Chris Bracken
38664ac322 Maintain FlutterTextInputView text in NSMutableString (#3554)
* Maintain FlutterTextInputView text in NSMutableString

We were converting from/to NSString at the interface of
FlutterTextInputView; instead use NSMutableString to maintain the
internal buffer.

Eliminates nsstring_utils.{h,mm} which no longer has any users.
2017-04-03 17:23:07 -07:00
Michael Goderbauer
68a462fd0f Roll FTL to 77f430179ddc1ad82e9ad3c056b708f583804151 (#3553)
* Roll FTL to 77f430179ddc1ad82e9ad3c056b708f583804151

This makes FTL compilable on Windows.

* fix license
2017-04-03 15:05:13 -07:00
Seigo Nonaka
db1b6cb776 Support cmap tables with platform ID == 0
Some fonts don't have cmap subtables of Microsoft Platform ID (3) and
only have cmap subtables of Unicode Platform ID (0).

Bug: 32505843
Test: minikin_unittest passed
Test: android.graphics.cts.TypefaceTest passed
Change-Id: I24aa49860790c0ae8d8e578efd728b95ec0f93ae
2017-04-03 14:57:19 -07:00
Jason Simmons
9328229e49 Add a flag for the path to the adb tool in the flutter_gdb script (#3551) 2017-04-03 12:22:26 -07:00
Chinmay Garde
4eac09481e Remove deprecated FlutterInit. (#3550) 2017-04-03 11:51:38 -07:00
Roozbeh Pournader
a4b37664b1 Override the bidi properties of new emojis am: bab3b98ceb
am: 13d708e4eb

Change-Id: Ic55ed4b18cb9c41a4c0c96d8f8dee431dffe905a
2017-04-03 00:33:43 +00:00
Roozbeh Pournader
13d708e4eb Override the bidi properties of new emojis
am: bab3b98ceb

Change-Id: Ic24100663716142a547fd2e2f2b6fcb551f7bdd0
2017-04-03 00:27:44 +00:00
Roozbeh Pournader
bab3b98ceb Override the bidi properties of new emojis
Test: new Minikin tests are added, and pass
Bug: 32952475
Change-Id: Ibcae60d18d0cd5efd7556aaf58a716b6b59c8ee0
2017-04-02 15:30:21 -07:00
Jason Simmons
4c05830aaf Use the SkVertices::Builder API (#3549) 2017-03-31 15:16:45 -07:00
Chinmay Garde
8f4457fed9 Fix a race condition in MessageLoopImpl due to difference in calculation of the next wake and the timer rearm. (#3548) 2017-03-31 13:39:23 -07:00
Jason Simmons
bc128fb3f9 Remove unused FML JNI helpers (#3547) 2017-03-31 13:29:11 -07:00
Jason Simmons
29f289acbb Remove dart:jni (#3546)
Fixes https://github.com/flutter/flutter/issues/9129
2017-03-31 13:07:52 -07:00
TreeHugger Robot
b1685c1d74 Merge "Add test config to minikin_tests" 2017-03-31 17:04:15 +00:00
Collin Jackson
0005285781 Revert "Make FlutterActivity extend from FragmentActivity (#3529)" (#3545)
This reverts commit fa360b55da851381ecf2abaa4769189674265c1c.
2017-03-31 09:06:07 -07:00
Roozbeh Pournader
def04d139c Remove unused classes and methods am: 55e37071ab
am: 0a52b686dd

Change-Id: Idffb6ba27d09a9ab9e0c7e737e00a1dbb7f1e09c
2017-03-31 03:14:23 +00:00
Roozbeh Pournader
0a52b686dd Remove unused classes and methods
am: 55e37071ab

Change-Id: I9d0e82f8f6cf4889c9e4bd0c229c77e66089a8b9
2017-03-31 03:09:32 +00:00
Roozbeh Pournader
55e37071ab Remove unused classes and methods
Removed Bitmap and MinikinFontFreeType classes, as well
as the Layout::draw() method.

The code was there for debugging purposes and for potential
third-party users. We no longer support third-party uses of
Minikin, since we don't know of any.

Test: mmma -j frameworks/minikin builds with no errors
Change-Id: Iddc9e8d35334053bd5255bccf3dbe5ba1eecf814
2017-03-30 17:52:56 -07:00
Ryan Macnak
a8a4a9f691 Remove dead references to //base. (#3542) 2017-03-30 08:54:47 -07:00
Mikkel Nygaard Ravn
a8ecc25aab Ensure platform msg completer is invoked on ios even if no handler has been registered (#3544) 2017-03-30 12:49:09 +02:00
Ryan Macnak
4d5702b2d5 Roll Dart VM to 141b6351baacaedf23e740b5b7354970f2ac0979. (#3543) 2017-03-29 18:17:17 -07:00
Jason Simmons
bf698a1fe5 Roll Skia (#3541) 2017-03-29 14:22:23 -07:00
TreeHugger Robot
a41549ca87 Merge "Add test config to minikin_perftests" 2017-03-29 21:10:34 +00:00
Chinmay Garde
0451dc1106 Cleanup timeline markers. (#3540)
* Name the platform thread in the timeline. This does not affect (nor is it affected by) the pthread name set by the embedder.
* Make it easier in the timeline to see not only when the frame was request, but also when that frame request was fulfilled.
* Trace message loop wakes.
2017-03-29 13:04:25 -07:00
Dan Shi
735dcb5212 Add test config to minikin_perftests
Design doc:
Generalized Suites & the Unification of APCT & CTS Workflows Design/Roadmap
https://docs.google.com/document/d/1eabK3srlBLouMiBMrNP3xJPiRRdcoCquNxC8gBWPvx8/edit#heading=h.78vup5eivwzo

Details about test configs changes are tracked in doc
https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit#

Bug: 35882476
Test: local test
Change-Id: I23366d56aaa7fbd22ed8233df0969a17e371c5a5
2017-03-29 12:11:51 -07:00
Mikkel Nygaard Ravn
46255fb845 Platform channel API cleanup (retake) (#3539) 2017-03-29 13:43:54 +02:00
Mikkel Nygaard Ravn
8a8fc02f53 Revert "Flutter channel API cleanup (#3532)" (#3538)
This reverts commit afb206d373da8edc30cdd0de43bfa495ece66ab6.
2017-03-29 12:08:39 +02:00
Mikkel Nygaard Ravn
afb206d373 Flutter channel API cleanup (#3532) 2017-03-29 11:38:14 +02:00
Jason Simmons
cd60a77725 Include build_config (for OS_ANDROID) in image_decoding.cc (#3537) 2017-03-28 18:25:28 -07:00