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

Side by Side Diff: src/gpu/batches/GrRectBatchFactory.h

Issue 2125663003: Add gm that tests shaded stroked rectangles. (Closed) Base URL: https://skia.googlesource.com/skia.git@fixgmwidth
Patch Set: fix windows double->scalar warning Created 4 years, 5 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 | « src/gpu/batches/GrNonAAStrokeRectBatch.cpp ('k') | src/gpu/effects/GrDashingEffect.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 #ifndef GrRectBatchFactory_DEFINED 8 #ifndef GrRectBatchFactory_DEFINED
9 #define GrRectBatchFactory_DEFINED 9 #define GrRectBatchFactory_DEFINED
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const SkMatrix& viewMatrix, 48 const SkMatrix& viewMatrix,
49 const SkMatrix& localMatrix, 49 const SkMatrix& localMatrix,
50 const SkRect& rect, 50 const SkRect& rect,
51 const SkRect& devRect) { 51 const SkRect& devRect) {
52 return GrAAFillRectBatch::Create(color, viewMatrix, localMatrix, rect, devRe ct); 52 return GrAAFillRectBatch::Create(color, viewMatrix, localMatrix, rect, devRe ct);
53 } 53 }
54 54
55 inline GrDrawBatch* CreateNonAAStroke(GrColor color, 55 inline GrDrawBatch* CreateNonAAStroke(GrColor color,
56 const SkMatrix& viewMatrix, 56 const SkMatrix& viewMatrix,
57 const SkRect& rect, 57 const SkRect& rect,
58 SkScalar strokeWidth, 58 const SkStrokeRec& strokeRec,
59 bool snapToPixelCenters) { 59 bool snapToPixelCenters) {
60 return GrNonAAStrokeRectBatch::Create(color, viewMatrix, rect, strokeWidth, snapToPixelCenters); 60 return GrNonAAStrokeRectBatch::Create(color, viewMatrix, rect, strokeRec, sn apToPixelCenters);
61 } 61 }
62 62
63 inline GrDrawBatch* CreateAAStroke(GrColor color, 63 inline GrDrawBatch* CreateAAStroke(GrColor color,
64 const SkMatrix& viewMatrix, 64 const SkMatrix& viewMatrix,
65 const SkRect& rect, 65 const SkRect& rect,
66 const SkStrokeRec& stroke) { 66 const SkStrokeRec& stroke) {
67 return GrAAStrokeRectBatch::Create(color, viewMatrix, rect, stroke); 67 return GrAAStrokeRectBatch::Create(color, viewMatrix, rect, stroke);
68 } 68 }
69 69
70 // First rect is outer; second rect is inner 70 // First rect is outer; second rect is inner
71 GrDrawBatch* CreateAAFillNestedRects(GrColor, 71 GrDrawBatch* CreateAAFillNestedRects(GrColor,
72 const SkMatrix& viewMatrix, 72 const SkMatrix& viewMatrix,
73 const SkRect rects[2]); 73 const SkRect rects[2]);
74 74
75 }; 75 };
76 76
77 #endif 77 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrNonAAStrokeRectBatch.cpp ('k') | src/gpu/effects/GrDashingEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698