Skip to content

Commit

Permalink
call existing ostream operator for SkMatrix (flutter#5427)
Browse files Browse the repository at this point in the history
This permits removing the call to SkMatrix::toString(), which is deprecated.
  • Loading branch information
cary-clark authored and brianosman committed May 31, 2018
1 parent 8360553 commit 89eb6a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flow/debug_print.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ std::ostream& operator<<(std::ostream& os, const SkPoint& r) {
}

std::ostream& operator<<(std::ostream& os, const flow::RasterCacheKey& k) {
SkString matrix_string;
k.matrix().toString(&matrix_string);
os << "Picture: " << k.picture_id() << " matrix: " << matrix_string.c_str();
os << "Picture: " << k.picture_id() << " matrix: " << k.matrix();
return os;
}

Expand Down

0 comments on commit 89eb6a3

Please sign in to comment.