| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SKPBench.h" | 8 #include "SKPBench.h" |
| 9 #include "SkCommandLineFlags.h" | 9 #include "SkCommandLineFlags.h" |
| 10 #include "SkMultiPictureDraw.h" | 10 #include "SkMultiPictureDraw.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 for (int j = 0; j < fTileRects.count(); ++j) { | 132 for (int j = 0; j < fTileRects.count(); ++j) { |
| 133 fSurfaces[j]->getCanvas()->flush(); | 133 fSurfaces[j]->getCanvas()->flush(); |
| 134 } | 134 } |
| 135 } | 135 } |
| 136 | 136 |
| 137 void SKPBench::drawPicture() { | 137 void SKPBench::drawPicture() { |
| 138 for (int j = 0; j < fTileRects.count(); ++j) { | 138 for (int j = 0; j < fTileRects.count(); ++j) { |
| 139 const SkMatrix trans = SkMatrix::MakeTrans(-fTileRects[j].fLeft / fScale
, | 139 const SkMatrix trans = SkMatrix::MakeTrans(-fTileRects[j].fLeft / fScale
, |
| 140 -fTileRects[j].fTop / fScale)
; | 140 -fTileRects[j].fTop / fScale)
; |
| 141 fSurfaces[j]->getCanvas()->drawPicture(fPic, &trans, NULL); | 141 fSurfaces[j]->getCanvas()->drawPicture(fPic, &trans, nullptr); |
| 142 } | 142 } |
| 143 | 143 |
| 144 for (int j = 0; j < fTileRects.count(); ++j) { | 144 for (int j = 0; j < fTileRects.count(); ++j) { |
| 145 fSurfaces[j]->getCanvas()->flush(); | 145 fSurfaces[j]->getCanvas()->flush(); |
| 146 } | 146 } |
| 147 } | 147 } |
| OLD | NEW |