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

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

Issue 14314004: Axis aligned shader-based rect drawing (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Disabled shader-based rect drawing Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/gpu/GrAARectRenderer.cpp » ('j') | src/gpu/GrAARectRenderer.cpp » ('J')
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 8
9 #ifndef GrAARectRenderer_DEFINED 9 #ifndef GrAARectRenderer_DEFINED
10 #define GrAARectRenderer_DEFINED 10 #define GrAARectRenderer_DEFINED
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // since we now have a coverage vertex attribute 42 // since we now have a coverage vertex attribute
43 void fillAARect(GrGpu* gpu, 43 void fillAARect(GrGpu* gpu,
44 GrDrawTarget* target, 44 GrDrawTarget* target,
45 const GrRect& devRect, 45 const GrRect& devRect,
46 bool useVertexCoverage); 46 bool useVertexCoverage);
47 47
48 void shaderFillAARect(GrGpu* gpu, 48 void shaderFillAARect(GrGpu* gpu,
49 GrDrawTarget* target, 49 GrDrawTarget* target,
50 const GrRect& rect, 50 const GrRect& rect,
51 const SkMatrix& combinedMatrix, 51 const SkMatrix& combinedMatrix,
52 const GrRect& devRect, 52 const GrRect& devRect);
53 bool useVertexCoverage); 53
54 void shaderFillAAAARect(GrGpu* gpu,
bsalomon 2013/04/29 19:44:50 umm... AlignedAARect?
jvanverth1 2013/04/29 19:46:28 Yes, at first glance it's unclear what this method
robertphillips 2013/05/02 13:56:39 Done (shaderFillAlignedAARect).
55 GrDrawTarget* target,
56 const SkMatrix& combinedMatrix,
57 const GrRect& devRect);
54 58
55 void strokeAARect(GrGpu* gpu, 59 void strokeAARect(GrGpu* gpu,
56 GrDrawTarget* target, 60 GrDrawTarget* target,
57 const GrRect& devRect, 61 const GrRect& devRect,
58 const GrVec& devStrokeSize, 62 const GrVec& devStrokeSize,
59 bool useVertexCoverage); 63 bool useVertexCoverage);
60 64
61 private: 65 private:
62 GrIndexBuffer* fAAFillRectIndexBuffer; 66 GrIndexBuffer* fAAFillRectIndexBuffer;
63 GrIndexBuffer* fAAStrokeRectIndexBuffer; 67 GrIndexBuffer* fAAStrokeRectIndexBuffer;
64 68
65 GrIndexBuffer* aaFillRectIndexBuffer(GrGpu* gpu); 69 GrIndexBuffer* aaFillRectIndexBuffer(GrGpu* gpu);
66 70
67 static int aaStrokeRectIndexCount(); 71 static int aaStrokeRectIndexCount();
68 GrIndexBuffer* aaStrokeRectIndexBuffer(GrGpu* gpu); 72 GrIndexBuffer* aaStrokeRectIndexBuffer(GrGpu* gpu);
69 73
70 typedef GrRefCnt INHERITED; 74 typedef GrRefCnt INHERITED;
71 }; 75 };
72 76
73 #endif // GrAARectRenderer_DEFINED 77 #endif // GrAARectRenderer_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrAARectRenderer.cpp » ('j') | src/gpu/GrAARectRenderer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698