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

Side by Side Diff: gm/hittestpath.cpp

Issue 1273613002: Revert of IWYU: 'core' target, files starting A-C. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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/hairlines.cpp ('k') | gm/linepaths.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 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 "SkCullPoints.h" 10 #include "SkCullPoints.h"
11 #include "SkPath.h"
12 #include "SkRandom.h" 11 #include "SkRandom.h"
13 12
14 static void test_hittest(SkCanvas* canvas, const SkPath& path) { 13 static void test_hittest(SkCanvas* canvas, const SkPath& path) {
15 SkPaint paint; 14 SkPaint paint;
16 SkRect r = path.getBounds(); 15 SkRect r = path.getBounds();
17 16
18 paint.setColor(SK_ColorRED); 17 paint.setColor(SK_ColorRED);
19 canvas->drawPath(path, paint); 18 canvas->drawPath(path, paint);
20 19
21 const SkScalar MARGIN = SkIntToScalar(4); 20 const SkScalar MARGIN = SkIntToScalar(4);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 72 }
74 73
75 private: 74 private:
76 typedef GM INHERITED; 75 typedef GM INHERITED;
77 }; 76 };
78 77
79 ////////////////////////////////////////////////////////////////////////////// 78 //////////////////////////////////////////////////////////////////////////////
80 79
81 static skiagm::GM* MyFactory(void*) { return new HitTestPathGM; } 80 static skiagm::GM* MyFactory(void*) { return new HitTestPathGM; }
82 static skiagm::GMRegistry reg(MyFactory); 81 static skiagm::GMRegistry reg(MyFactory);
OLDNEW
« no previous file with comments | « gm/hairlines.cpp ('k') | gm/linepaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698