| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "gm.h" | 8 #include "gm.h" |
| 9 | 9 |
| 10 #include "Resources.h" | 10 #include "Resources.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // since we prepended this matrix already, we blit using identity | 174 // since we prepended this matrix already, we blit using identity |
| 175 inputCanvas->resetMatrix(); | 175 inputCanvas->resetMatrix(); |
| 176 inputCanvas->drawImage(surface->makeImageSnapshot().get(), 0, 0, nul
lptr); | 176 inputCanvas->drawImage(surface->makeImageSnapshot().get(), 0, 0, nul
lptr); |
| 177 } | 177 } |
| 178 #endif | 178 #endif |
| 179 } | 179 } |
| 180 | 180 |
| 181 private: | 181 private: |
| 182 SkAutoTUnref<const SkTextBlob> fBlob; | 182 SkAutoTUnref<const SkTextBlob> fBlob; |
| 183 | 183 |
| 184 static const int kWidth = 2000; | 184 static const int kWidth = 2100; |
| 185 static const int kHeight = 2000; | 185 static const int kHeight = 1900; |
| 186 | 186 |
| 187 bool fUseDFT; | 187 bool fUseDFT; |
| 188 | 188 |
| 189 typedef GM INHERITED; | 189 typedef GM INHERITED; |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 ////////////////////////////////////////////////////////////////////////////// | 192 ////////////////////////////////////////////////////////////////////////////// |
| 193 | 193 |
| 194 DEF_GM( return new TextBlobMixedSizes(false); ) | 194 DEF_GM( return new TextBlobMixedSizes(false); ) |
| 195 #if SK_SUPPORT_GPU | 195 #if SK_SUPPORT_GPU |
| 196 DEF_GM( return new TextBlobMixedSizes(true); ) | 196 DEF_GM( return new TextBlobMixedSizes(true); ) |
| 197 #endif | 197 #endif |
| 198 } | 198 } |
| OLD | NEW |