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

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

Issue 23904003: Remove GrRefCnt.h in favor of SkRefCnt.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rm GrRefCnt.h Created 7 years, 3 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 | « include/gpu/gl/GrGLInterface.h ('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
9 #ifndef GrAARectRenderer_DEFINED 8 #ifndef GrAARectRenderer_DEFINED
10 #define GrAARectRenderer_DEFINED 9 #define GrAARectRenderer_DEFINED
11 10
12 #include "GrRefCnt.h"
13 #include "SkMatrix.h" 11 #include "SkMatrix.h"
14 #include "SkRect.h" 12 #include "SkRect.h"
13 #include "SkRefCnt.h"
15 14
16 class GrGpu; 15 class GrGpu;
17 class GrDrawTarget; 16 class GrDrawTarget;
18 class GrIndexBuffer; 17 class GrIndexBuffer;
19 18
20 /* 19 /*
21 * This class wraps helper functions that draw AA rects (filled & stroked) 20 * This class wraps helper functions that draw AA rects (filled & stroked)
22 */ 21 */
23 class GrAARectRenderer : public GrRefCnt { 22 class GrAARectRenderer : public SkRefCnt {
24 public: 23 public:
25 SK_DECLARE_INST_COUNT(GrAARectRenderer) 24 SK_DECLARE_INST_COUNT(GrAARectRenderer)
26 25
27 GrAARectRenderer() 26 GrAARectRenderer()
28 : fAAFillRectIndexBuffer(NULL) 27 : fAAFillRectIndexBuffer(NULL)
29 , fAAStrokeRectIndexBuffer(NULL) { 28 , fAAStrokeRectIndexBuffer(NULL) {
30 } 29 }
31 30
32 void reset(); 31 void reset();
33 32
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 GrDrawTarget* target, 100 GrDrawTarget* target,
102 const SkRect& rect, 101 const SkRect& rect,
103 const SkMatrix& combinedMatrix); 102 const SkMatrix& combinedMatrix);
104 103
105 void geometryStrokeAARect(GrGpu* gpu, 104 void geometryStrokeAARect(GrGpu* gpu,
106 GrDrawTarget* target, 105 GrDrawTarget* target,
107 const SkRect& devOutside, 106 const SkRect& devOutside,
108 const SkRect& devInside, 107 const SkRect& devInside,
109 bool useVertexCoverage); 108 bool useVertexCoverage);
110 109
111 typedef GrRefCnt INHERITED; 110 typedef SkRefCnt INHERITED;
112 }; 111 };
113 112
114 #endif // GrAARectRenderer_DEFINED 113 #endif // GrAARectRenderer_DEFINED
OLDNEW
« no previous file with comments | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698