Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Call drawPath without clip if possible #5952

Merged
merged 1 commit into from
Aug 7, 2018
Merged

Conversation

liyuqian
Copy link
Contributor

@liyuqian liyuqian commented Aug 6, 2018

It turns out that Skia is much slower at drawing paint inside a clipped
path than directly drawing that path. (Average frame time of 22ms vs
18ms in flutter_galary transition test.)

It turns out that Skia is much slower at drawing paint inside a clipped
path than directly drawing that path. (Average frame time of 22ms vs
18ms in flutter_galary transition test.)
@Hixie
Copy link
Contributor

Hixie commented Aug 6, 2018

LGTM

tests?

@liyuqian
Copy link
Contributor Author

liyuqian commented Aug 6, 2018

@Hixie do you mean updating golden images? I'm hesitant to update them and merge this now because I think @nataliesampsell is also updating the golden images and I can't pass the golden tests using her newest golden files. I'm waiting for her changes to land in flutter/flutter so I can update my golden images on top of hers. Otherwise, I'll have to keep doing flutter/goldens@111e6e9

@Hixie
Copy link
Contributor

Hixie commented Aug 7, 2018

I mean whatever it takes to make sure we don't regress this. :-)

@liyuqian
Copy link
Contributor Author

liyuqian commented Aug 7, 2018

Thanks for the comment! The flutter_galary transition benchmark in our dashboard should catch the performance regression and clip.PhysicalModel.xxx.png golden images should guard the correctness. I'll check for better micro-benchmark to monitor the performance regression later.

@liyuqian liyuqian merged commit b3e866e into flutter:master Aug 7, 2018
liyuqian added a commit to liyuqian/flutter that referenced this pull request Aug 7, 2018
b3e866e Call drawPath without clip if possible (flutter/engine#5952)
7e0bb3b Allow freezing a texture. (flutter/engine#5938)
3cbb5e2 Persist DartCallbackCache contents across launches (flutter/engine#5947)
953570a libtxt: truncate paragraph width to an integer in order to match Blink's behavior (flutter/engine#5962)
liyuqian added a commit to flutter/goldens that referenced this pull request Aug 7, 2018
@liyuqian liyuqian deleted the fastpath branch September 12, 2018 22:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants