| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 canvas->translate(0, dy * 5 / 4); | 115 canvas->translate(0, dy * 5 / 4); |
| 116 SkSafeUnref(mode); | 116 SkSafeUnref(mode); |
| 117 } | 117 } |
| 118 canvas->restore(); | 118 canvas->restore(); |
| 119 canvas->restore(); | 119 canvas->restore(); |
| 120 canvas->translate(W * 5 / 4, 0); | 120 canvas->translate(W * 5 / 4, 0); |
| 121 } | 121 } |
| 122 } | 122 } |
| 123 | 123 |
| 124 // disable pdf for now, since it crashes on mac | |
| 125 virtual uint32_t onGetFlags() const { return kSkipPDF_Flag | kSkipTiled_
Flag; } | |
| 126 | |
| 127 private: | 124 private: |
| 128 typedef GM INHERITED; | 125 typedef GM INHERITED; |
| 129 }; | 126 }; |
| 130 | 127 |
| 131 ////////////////////////////////////////////////////////////////////////////
// | 128 ////////////////////////////////////////////////////////////////////////////
// |
| 132 | 129 |
| 133 static GM* MyFactory(void*) { return new HairModesGM; } | 130 static GM* MyFactory(void*) { return new HairModesGM; } |
| 134 static GMRegistry reg(MyFactory); | 131 static GMRegistry reg(MyFactory); |
| 135 | 132 |
| 136 } | 133 } |
| OLD | NEW |