| 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 | 10 | 
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 337     canvas->restore(); | 337     canvas->restore(); | 
| 338 } | 338 } | 
| 339 | 339 | 
| 340 }; | 340 }; | 
| 341 | 341 | 
| 342 class ConcavePathsGM : public skiagm::GM { | 342 class ConcavePathsGM : public skiagm::GM { | 
| 343 public: | 343 public: | 
| 344     ConcavePathsGM() {} | 344     ConcavePathsGM() {} | 
| 345 | 345 | 
| 346 protected: | 346 protected: | 
| 347     SkString onShortName() SK_OVERRIDE { | 347     SkString onShortName() override { | 
| 348         return SkString("concavepaths"); | 348         return SkString("concavepaths"); | 
| 349     } | 349     } | 
| 350 | 350 | 
| 351     SkISize onISize() SK_OVERRIDE { | 351     SkISize onISize() override { | 
| 352         return SkISize::Make(WIDTH, HEIGHT); | 352         return SkISize::Make(WIDTH, HEIGHT); | 
| 353     } | 353     } | 
| 354 | 354 | 
| 355     void onDraw(SkCanvas* canvas) SK_OVERRIDE { | 355     void onDraw(SkCanvas* canvas) override { | 
| 356         SkPaint paint; | 356         SkPaint paint; | 
| 357 | 357 | 
| 358         paint.setAntiAlias(true); | 358         paint.setAntiAlias(true); | 
| 359         paint.setStyle(SkPaint::kFill_Style); | 359         paint.setStyle(SkPaint::kFill_Style); | 
| 360 | 360 | 
| 361         test_concave(canvas, paint); | 361         test_concave(canvas, paint); | 
| 362         test_reverse_concave(canvas, paint); | 362         test_reverse_concave(canvas, paint); | 
| 363         test_bowtie(canvas, paint); | 363         test_bowtie(canvas, paint); | 
| 364         test_fake_bowtie(canvas, paint); | 364         test_fake_bowtie(canvas, paint); | 
| 365         test_fish(canvas, paint); | 365         test_fish(canvas, paint); | 
| (...skipping 16 matching lines...) Expand all  Loading... | 
| 382         test_coincident_edges_3(canvas, paint); | 382         test_coincident_edges_3(canvas, paint); | 
| 383         test_coincident_edges_4(canvas, paint); | 383         test_coincident_edges_4(canvas, paint); | 
| 384     } | 384     } | 
| 385 | 385 | 
| 386 private: | 386 private: | 
| 387     typedef skiagm::GM INHERITED; | 387     typedef skiagm::GM INHERITED; | 
| 388 }; | 388 }; | 
| 389 | 389 | 
| 390 static skiagm::GM* F0(void*) { return new ConcavePathsGM; } | 390 static skiagm::GM* F0(void*) { return new ConcavePathsGM; } | 
| 391 static skiagm::GMRegistry R0(F0); | 391 static skiagm::GMRegistry R0(F0); | 
| OLD | NEW | 
|---|