OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 GrInOrderDrawBuffer_DEFINED | 8 #ifndef GrInOrderDrawBuffer_DEFINED |
9 #define GrInOrderDrawBuffer_DEFINED | 9 #define GrInOrderDrawBuffer_DEFINED |
10 | 10 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 SkAutoTUnref<const GrPath> fPath; | 111 SkAutoTUnref<const GrPath> fPath; |
112 SkPath::FillType fFill; | 112 SkPath::FillType fFill; |
113 GrDeviceCoordTexture fDstCopy; | 113 GrDeviceCoordTexture fDstCopy; |
114 }; | 114 }; |
115 | 115 |
116 struct DrawPaths : public ::SkNoncopyable { | 116 struct DrawPaths : public ::SkNoncopyable { |
117 DrawPaths(); | 117 DrawPaths(); |
118 ~DrawPaths(); | 118 ~DrawPaths(); |
119 | 119 |
120 size_t fPathCount; | 120 int fPathCount; |
121 const GrPath** fPaths; | 121 const GrPath** fPaths; |
122 SkMatrix* fTransforms; | 122 SkMatrix* fTransforms; |
123 SkPath::FillType fFill; | 123 SkPath::FillType fFill; |
124 SkStrokeRec::Style fStroke; | 124 SkStrokeRec::Style fStroke; |
125 GrDeviceCoordTexture fDstCopy; | 125 GrDeviceCoordTexture fDstCopy; |
126 }; | 126 }; |
127 | 127 |
128 struct Clear : public ::SkNoncopyable { | 128 struct Clear : public ::SkNoncopyable { |
129 Clear() : fRenderTarget(NULL) {} | 129 Clear() : fRenderTarget(NULL) {} |
130 ~Clear() { SkSafeUnref(fRenderTarget); } | 130 ~Clear() { SkSafeUnref(fRenderTarget); } |
(...skipping 14 matching lines...) Expand all Loading... |
145 // overrides from GrDrawTarget | 145 // overrides from GrDrawTarget |
146 virtual void onDraw(const DrawInfo&) SK_OVERRIDE; | 146 virtual void onDraw(const DrawInfo&) SK_OVERRIDE; |
147 virtual void onDrawRect(const SkRect& rect, | 147 virtual void onDrawRect(const SkRect& rect, |
148 const SkMatrix* matrix, | 148 const SkMatrix* matrix, |
149 const SkRect* localRect, | 149 const SkRect* localRect, |
150 const SkMatrix* localMatrix) SK_OVERRIDE; | 150 const SkMatrix* localMatrix) SK_OVERRIDE; |
151 | 151 |
152 virtual void onStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; | 152 virtual void onStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; |
153 virtual void onDrawPath(const GrPath*, SkPath::FillType, | 153 virtual void onDrawPath(const GrPath*, SkPath::FillType, |
154 const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE; | 154 const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE; |
155 virtual void onDrawPaths(size_t, const GrPath**, const SkMatrix*, | 155 virtual void onDrawPaths(int, const GrPath**, const SkMatrix*, |
156 SkPath::FillType, SkStrokeRec::Style, | 156 SkPath::FillType, SkStrokeRec::Style, |
157 const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE; | 157 const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE; |
158 | 158 |
159 virtual bool onReserveVertexSpace(size_t vertexSize, | 159 virtual bool onReserveVertexSpace(size_t vertexSize, |
160 int vertexCount, | 160 int vertexCount, |
161 void** vertices) SK_OVERRIDE; | 161 void** vertices) SK_OVERRIDE; |
162 virtual bool onReserveIndexSpace(int indexCount, | 162 virtual bool onReserveIndexSpace(int indexCount, |
163 void** indices) SK_OVERRIDE; | 163 void** indices) SK_OVERRIDE; |
164 virtual void releaseReservedVertexSpace() SK_OVERRIDE; | 164 virtual void releaseReservedVertexSpace() SK_OVERRIDE; |
165 virtual void releaseReservedIndexSpace() SK_OVERRIDE; | 165 virtual void releaseReservedIndexSpace() SK_OVERRIDE; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 265 |
266 void addToCmdBuffer(uint8_t cmd); | 266 void addToCmdBuffer(uint8_t cmd); |
267 | 267 |
268 bool fFlushing; | 268 bool fFlushing; |
269 uint32_t fDrawID; | 269 uint32_t fDrawID; |
270 | 270 |
271 typedef GrDrawTarget INHERITED; | 271 typedef GrDrawTarget INHERITED; |
272 }; | 272 }; |
273 | 273 |
274 #endif | 274 #endif |
OLD | NEW |