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

Side by Side Diff: gm/beziereffects.cpp

Issue 1904673003: Rein in the use of SkDevice.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « debugger/QT/SkGLWidget.h ('k') | gm/bigrrectaaeffect.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 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 // This test only works with the GPU backend. 8 // This test only works with the GPU backend.
9 9
10 #include "gm.h" 10 #include "gm.h"
11 11
12 #if SK_SUPPORT_GPU 12 #if SK_SUPPORT_GPU
13 13
14 #include "GrDrawContextPriv.h" 14 #include "GrDrawContextPriv.h"
15 #include "GrContext.h" 15 #include "GrContext.h"
16 #include "GrPathUtils.h" 16 #include "GrPathUtils.h"
17 #include "GrTest.h" 17 #include "GrTest.h"
18 #include "SkColorPriv.h" 18 #include "SkColorPriv.h"
19 #include "SkDevice.h"
20 #include "SkGeometry.h" 19 #include "SkGeometry.h"
21 20
22 #include "batches/GrTestBatch.h" 21 #include "batches/GrTestBatch.h"
23 22
24 #include "effects/GrBezierEffect.h" 23 #include "effects/GrBezierEffect.h"
25 24
26 static inline SkScalar eval_line(const SkPoint& p, const SkScalar lineEq[3], SkS calar sign) { 25 static inline SkScalar eval_line(const SkPoint& p, const SkScalar lineEq[3], SkS calar sign) {
27 return sign * (lineEq[0] * p.fX + lineEq[1] * p.fY + lineEq[2]); 26 return sign * (lineEq[0] * p.fX + lineEq[1] * p.fY + lineEq[2]);
28 } 27 }
29 28
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 private: 566 private:
568 typedef GM INHERITED; 567 typedef GM INHERITED;
569 }; 568 };
570 569
571 DEF_GM(return new BezierCubicEffects;) 570 DEF_GM(return new BezierCubicEffects;)
572 DEF_GM(return new BezierConicEffects;) 571 DEF_GM(return new BezierConicEffects;)
573 DEF_GM(return new BezierQuadEffects;) 572 DEF_GM(return new BezierQuadEffects;)
574 } 573 }
575 574
576 #endif 575 #endif
OLDNEW
« no previous file with comments | « debugger/QT/SkGLWidget.h ('k') | gm/bigrrectaaeffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698