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

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

Issue 664193002: Oval and stroke AA rect now batch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more gms added to ignore Created 6 years, 1 month 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/GrAAHairLinePathRenderer.cpp ('k') | src/gpu/GrAARectRenderer.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 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void fillAANestedRects(GrGpu* gpu, 68 void fillAANestedRects(GrGpu* gpu,
69 GrDrawTarget* target, 69 GrDrawTarget* target,
70 const SkRect rects[2], 70 const SkRect rects[2],
71 const SkMatrix& combinedMatrix); 71 const SkMatrix& combinedMatrix);
72 72
73 private: 73 private:
74 GrIndexBuffer* fAAFillRectIndexBuffer; 74 GrIndexBuffer* fAAFillRectIndexBuffer;
75 GrIndexBuffer* fAAMiterStrokeRectIndexBuffer; 75 GrIndexBuffer* fAAMiterStrokeRectIndexBuffer;
76 GrIndexBuffer* fAABevelStrokeRectIndexBuffer; 76 GrIndexBuffer* fAABevelStrokeRectIndexBuffer;
77 77
78 GrIndexBuffer* aaFillRectIndexBuffer(GrGpu* gpu);
79
80 static int aaStrokeRectIndexCount(bool miterStroke); 78 static int aaStrokeRectIndexCount(bool miterStroke);
81 GrIndexBuffer* aaStrokeRectIndexBuffer(GrGpu* gpu, bool miterStroke); 79 GrIndexBuffer* aaStrokeRectIndexBuffer(GrGpu* gpu, bool miterStroke);
82 80
83 void geometryFillAARect(GrGpu* gpu, 81 void geometryFillAARect(GrGpu* gpu,
84 GrDrawTarget* target, 82 GrDrawTarget* target,
85 const SkRect& rect, 83 const SkRect& rect,
86 const SkMatrix& combinedMatrix, 84 const SkMatrix& combinedMatrix,
87 const SkRect& devRect); 85 const SkRect& devRect);
88 86
89 void shaderFillAARect(GrGpu* gpu, 87 void shaderFillAARect(GrGpu* gpu,
(...skipping 10 matching lines...) Expand all
100 GrDrawTarget* target, 98 GrDrawTarget* target,
101 const SkRect& devOutside, 99 const SkRect& devOutside,
102 const SkRect& devOutsideAssist, 100 const SkRect& devOutsideAssist,
103 const SkRect& devInside, 101 const SkRect& devInside,
104 bool miterStroke); 102 bool miterStroke);
105 103
106 typedef SkRefCnt INHERITED; 104 typedef SkRefCnt INHERITED;
107 }; 105 };
108 106
109 #endif // GrAARectRenderer_DEFINED 107 #endif // GrAARectRenderer_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/GrAAHairLinePathRenderer.cpp ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698