| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2013 Google Inc. | 2  * Copyright 2013 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 "SkTArray.h" | 10 #include "SkTArray.h" | 
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 99                         canvas->translate(110, 0); | 99                         canvas->translate(110, 0); | 
| 100                     } | 100                     } | 
| 101                 } | 101                 } | 
| 102             } | 102             } | 
| 103             canvas->restore(); | 103             canvas->restore(); | 
| 104             canvas->translate(0, 110); | 104             canvas->translate(0, 110); | 
| 105         } | 105         } | 
| 106         canvas->restore(); | 106         canvas->restore(); | 
| 107     } | 107     } | 
| 108 | 108 | 
| 109     uint32_t onGetFlags() const SK_OVERRIDE { |  | 
| 110         // tiling w/ non-antialias paths can cause off-by-1-pixels differences w
     hich are |  | 
| 111         // unavoidable (chopping in floats -vs- stepping in scan-converter). |  | 
| 112         return kSkipTiled_Flag; |  | 
| 113     } |  | 
| 114 |  | 
| 115 private: | 109 private: | 
| 116     SkTArray<SkPath> fPaths; | 110     SkTArray<SkPath> fPaths; | 
| 117     typedef skiagm::GM INHERITED; | 111     typedef skiagm::GM INHERITED; | 
| 118 }; | 112 }; | 
| 119 DEF_GM( return SkNEW(ConicPathsGM); ) | 113 DEF_GM( return SkNEW(ConicPathsGM); ) | 
| 120 | 114 | 
| 121 ////////////////////////////////////////////////////////////////////////////// | 115 ////////////////////////////////////////////////////////////////////////////// | 
| 122 | 116 | 
| OLD | NEW | 
|---|