Skip to content

Commit

Permalink
remove Skia toString() use (flutter#5326)
Browse files Browse the repository at this point in the history
Skia toString() is not maintained; the debugger that used it has been replaced. 
Replace usage with equivalent implementation.
  • Loading branch information
cary-clark authored and brianosman committed May 21, 2018
1 parent c86b3b7 commit 537f892
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flow/debug_print.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ std::ostream& operator<<(std::ostream& os, const flow::MatrixDecomposition& m) {

std::ostream& operator<<(std::ostream& os, const SkMatrix& m) {
SkString string;
m.toString(&string);
string.printf(
"[%8.4f %8.4f %8.4f][%8.4f %8.4f %8.4f][%8.4f %8.4f %8.4f]",
m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8]);
os << string.c_str();
return os;
}
Expand Down

0 comments on commit 537f892

Please sign in to comment.