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 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkRRect.h" | 10 #include "SkRRect.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 canvas->restore(); | 66 canvas->restore(); |
67 | 67 |
68 canvas->save(); | 68 canvas->save(); |
69 canvas->translate(0.0f, 240.0f); | 69 canvas->translate(0.0f, 240.0f); |
70 canvas->scale(scale, scale); | 70 canvas->scale(scale, scale); |
71 canvas->drawLine(0.0f, 0.0f, size / scale, size / scale, paint); | 71 canvas->drawLine(0.0f, 0.0f, size / scale, size / scale, paint); |
72 canvas->restore(); | 72 canvas->restore(); |
73 | 73 |
74 canvas->translate(80.0f, 0.0f); | 74 canvas->translate(80.0f, 0.0f); |
75 } | 75 } |
| 76 canvas->restore(); |
76 } | 77 } |
77 | 78 |
78 } | 79 } |
79 | 80 |
80 private: | 81 private: |
81 typedef GM INHERITED; | 82 typedef GM INHERITED; |
82 }; | 83 }; |
83 | 84 |
84 DEF_GM( return new ScaledStrokesGM; ) | 85 DEF_GM( return new ScaledStrokesGM; ) |
OLD | NEW |