OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SkGpuDevice_DEFINED | 9 #ifndef SkGpuDevice_DEFINED |
10 #define SkGpuDevice_DEFINED | 10 #define SkGpuDevice_DEFINED |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 const SkMatrix& viewMatrix, | 224 const SkMatrix& viewMatrix, |
225 const SkRect& srcRect, | 225 const SkRect& srcRect, |
226 const SkIRect& clippedSrcRect, | 226 const SkIRect& clippedSrcRect, |
227 const GrTextureParams& params, | 227 const GrTextureParams& params, |
228 const SkPaint& paint, | 228 const SkPaint& paint, |
229 SkCanvas::SrcRectConstraint, | 229 SkCanvas::SrcRectConstraint, |
230 int tileSize, | 230 int tileSize, |
231 bool bicubic); | 231 bool bicubic); |
232 | 232 |
233 void drawTextureProducer(GrTextureProducer*, | 233 void drawTextureProducer(GrTextureProducer*, |
234 bool alphaOnly, | |
235 const SkRect* srcRect, | 234 const SkRect* srcRect, |
236 const SkRect* dstRect, | 235 const SkRect* dstRect, |
237 SkCanvas::SrcRectConstraint, | 236 SkCanvas::SrcRectConstraint, |
238 const SkMatrix& viewMatrix, | 237 const SkMatrix& viewMatrix, |
239 const GrClip&, | 238 const GrClip&, |
240 const SkPaint&); | 239 const SkPaint&); |
241 | 240 |
242 void drawTextureProducerImpl(GrTextureProducer*, | 241 void drawTextureProducerImpl(GrTextureProducer*, |
243 bool alphaOnly, | |
244 const SkRect& clippedSrcRect, | 242 const SkRect& clippedSrcRect, |
245 const SkRect& clippedDstRect, | 243 const SkRect& clippedDstRect, |
246 SkCanvas::SrcRectConstraint, | 244 SkCanvas::SrcRectConstraint, |
247 const SkMatrix& viewMatrix, | 245 const SkMatrix& viewMatrix, |
248 const SkMatrix& srcToDstMatrix, | 246 const SkMatrix& srcToDstMatrix, |
249 const GrClip&, | 247 const GrClip&, |
250 const SkPaint&); | 248 const SkPaint&); |
251 | 249 |
252 void drawProducerNine(const SkDraw&, GrTextureProducer*, bool alphaOnly, | 250 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent
er, |
253 const SkIRect& center, const SkRect& dst, const SkPain
t&); | 251 const SkRect& dst, const SkPaint&); |
254 | 252 |
255 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 253 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
256 | 254 |
257 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 255 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
258 int sampleCount); | 256 int sampleCount); |
259 | 257 |
260 friend class GrAtlasTextContext; | 258 friend class GrAtlasTextContext; |
261 friend class SkSurface_Gpu; // for access to surfaceProps | 259 friend class SkSurface_Gpu; // for access to surfaceProps |
262 typedef SkBaseDevice INHERITED; | 260 typedef SkBaseDevice INHERITED; |
263 }; | 261 }; |
264 | 262 |
265 #endif | 263 #endif |
OLD | NEW |