Note that it is much easier to review patches if they are submitted to
https://codereview.appspot.com/ .
Note that Skia doesn't really do text shaping at the moment and this won't really be a priority until it can be done wholesale -- that is provide an API which calls out to Uniscribe, DirectWrite, CoreText, HarfBuzz/FriBidi, etc to allow the user to do full shaping. The SkPaint::breakText method is something of an internal stop-gap utility (mostly only useful for internal tests) for the time being.
All that being said, I believe that the check for line ending characters should be in SkPaint::breakText instead of trying to add it on outside.