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

Side by Side Diff: src/gpu/GrAARectRenderer.h

Issue 1109153004: Initial CL to create GrBatchTest infrastructure (Closed) Base URL: https://skia.googlesource.com/skia.git@rand-batch0
Patch Set: windows warnings Created 5 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 GrAARectRenderer_DEFINED 8 #ifndef GrAARectRenderer_DEFINED
9 #define GrAARectRenderer_DEFINED 9 #define GrAARectRenderer_DEFINED
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const SkStrokeRec& stroke); 61 const SkStrokeRec& stroke);
62 62
63 // First rect is outer; second rect is inner 63 // First rect is outer; second rect is inner
64 void fillAANestedRects(GrDrawTarget*, 64 void fillAANestedRects(GrDrawTarget*,
65 GrPipelineBuilder*, 65 GrPipelineBuilder*,
66 GrColor, 66 GrColor,
67 const SkMatrix& viewMatrix, 67 const SkMatrix& viewMatrix,
68 const SkRect rects[2]); 68 const SkRect rects[2]);
69 69
70 private: 70 private:
71 GrIndexBuffer* aaStrokeRectIndexBuffer(bool miterStroke);
72
73 void geometryFillAARect(GrDrawTarget*, 71 void geometryFillAARect(GrDrawTarget*,
74 GrPipelineBuilder*, 72 GrPipelineBuilder*,
75 GrColor, 73 GrColor,
76 const SkMatrix& viewMatrix, 74 const SkMatrix& viewMatrix,
77 const SkRect& rect, 75 const SkRect& rect,
78 const SkRect& devRect); 76 const SkRect& devRect);
79 77
80 void geometryStrokeAARect(GrDrawTarget*, 78 void geometryStrokeAARect(GrDrawTarget*,
81 GrPipelineBuilder*, 79 GrPipelineBuilder*,
82 GrColor, 80 GrColor,
83 const SkMatrix& viewMatrix, 81 const SkMatrix& viewMatrix,
84 const SkRect& devOutside, 82 const SkRect& devOutside,
85 const SkRect& devOutsideAssist, 83 const SkRect& devOutsideAssist,
86 const SkRect& devInside, 84 const SkRect& devInside,
87 bool miterStroke); 85 bool miterStroke);
88 86
89 GrGpu* fGpu; 87 GrGpu* fGpu;
90 GrIndexBuffer* fAAFillRectIndexBuffer; 88 GrIndexBuffer* fAAFillRectIndexBuffer;
91 GrIndexBuffer* fAAMiterStrokeRectIndexBuffer; 89 GrIndexBuffer* fAAMiterStrokeRectIndexBuffer;
92 GrIndexBuffer* fAABevelStrokeRectIndexBuffer; 90 GrIndexBuffer* fAABevelStrokeRectIndexBuffer;
93 91
94 typedef SkRefCnt INHERITED; 92 typedef SkRefCnt INHERITED;
95 }; 93 };
96 94
97 #endif // GrAARectRenderer_DEFINED 95 #endif // GrAARectRenderer_DEFINED
OLDNEW
« no previous file with comments | « include/gpu/GrTestUtils.h ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | src/gpu/GrTestUtils.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698