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

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

Issue 675623002: Revert of Oval and stroke AA rect now batch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
78 static int aaStrokeRectIndexCount(bool miterStroke); 80 static int aaStrokeRectIndexCount(bool miterStroke);
79 GrIndexBuffer* aaStrokeRectIndexBuffer(GrGpu* gpu, bool miterStroke); 81 GrIndexBuffer* aaStrokeRectIndexBuffer(GrGpu* gpu, bool miterStroke);
80 82
81 void geometryFillAARect(GrGpu* gpu, 83 void geometryFillAARect(GrGpu* gpu,
82 GrDrawTarget* target, 84 GrDrawTarget* target,
83 const SkRect& rect, 85 const SkRect& rect,
84 const SkMatrix& combinedMatrix, 86 const SkMatrix& combinedMatrix,
85 const SkRect& devRect); 87 const SkRect& devRect);
86 88
87 void shaderFillAARect(GrGpu* gpu, 89 void shaderFillAARect(GrGpu* gpu,
(...skipping 10 matching lines...) Expand all
98 GrDrawTarget* target, 100 GrDrawTarget* target,
99 const SkRect& devOutside, 101 const SkRect& devOutside,
100 const SkRect& devOutsideAssist, 102 const SkRect& devOutsideAssist,
101 const SkRect& devInside, 103 const SkRect& devInside,
102 bool miterStroke); 104 bool miterStroke);
103 105
104 typedef SkRefCnt INHERITED; 106 typedef SkRefCnt INHERITED;
105 }; 107 };
106 108
107 #endif // GrAARectRenderer_DEFINED 109 #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