OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
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 | 9 |
10 #include "SkMaskFilter.h" | 10 #include "SkMaskFilter.h" |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 bool SkMaskFilter::canFilterMaskGPU(const SkRect& devBounds, | 311 bool SkMaskFilter::canFilterMaskGPU(const SkRect& devBounds, |
312 const SkIRect& clipBounds, | 312 const SkIRect& clipBounds, |
313 const SkMatrix& ctm, | 313 const SkMatrix& ctm, |
314 SkRect* maskRect) const { | 314 SkRect* maskRect) const { |
315 return false; | 315 return false; |
316 } | 316 } |
317 | 317 |
318 bool SkMaskFilter::directFilterMaskGPU(GrContext* context, | 318 bool SkMaskFilter::directFilterMaskGPU(GrContext* context, |
319 GrRenderTarget* rt, | 319 GrRenderTarget* rt, |
320 GrPaint* grp, | 320 GrPaint* grp, |
| 321 const GrClip&, |
321 const SkMatrix& viewMatrix, | 322 const SkMatrix& viewMatrix, |
322 const SkStrokeRec& strokeRec, | 323 const SkStrokeRec& strokeRec, |
323 const SkPath& path) const { | 324 const SkPath& path) const { |
324 return false; | 325 return false; |
325 } | 326 } |
326 | 327 |
327 | 328 |
328 bool SkMaskFilter::directFilterRRectMaskGPU(GrContext* context, | 329 bool SkMaskFilter::directFilterRRectMaskGPU(GrContext* context, |
329 GrRenderTarget* rt, | 330 GrRenderTarget* rt, |
330 GrPaint* grp, | 331 GrPaint* grp, |
| 332 const GrClip&, |
331 const SkMatrix& viewMatrix, | 333 const SkMatrix& viewMatrix, |
332 const SkStrokeRec& strokeRec, | 334 const SkStrokeRec& strokeRec, |
333 const SkRRect& rrect) const { | 335 const SkRRect& rrect) const { |
334 return false; | 336 return false; |
335 } | 337 } |
336 | 338 |
337 bool SkMaskFilter::filterMaskGPU(GrTexture* src, | 339 bool SkMaskFilter::filterMaskGPU(GrTexture* src, |
338 const SkMatrix& ctm, | 340 const SkMatrix& ctm, |
339 const SkRect& maskRect, | 341 const SkRect& maskRect, |
340 GrTexture** result, | 342 GrTexture** result, |
(...skipping 10 matching lines...) Expand all Loading... |
351 srcM.fRowBytes = 0; | 353 srcM.fRowBytes = 0; |
352 srcM.fFormat = SkMask::kA8_Format; | 354 srcM.fFormat = SkMask::kA8_Format; |
353 | 355 |
354 SkIPoint margin; // ignored | 356 SkIPoint margin; // ignored |
355 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { | 357 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { |
356 dst->set(dstM.fBounds); | 358 dst->set(dstM.fBounds); |
357 } else { | 359 } else { |
358 dst->set(srcM.fBounds); | 360 dst->set(srcM.fBounds); |
359 } | 361 } |
360 } | 362 } |
OLD | NEW |