Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: gm/concavepaths.cpp

Issue 1037793002: C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: git cl web Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gm/composeshader.cpp ('k') | gm/conicpaths.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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);
OLDNEW
« no previous file with comments | « gm/composeshader.cpp ('k') | gm/conicpaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698