| 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 | 311 |
| 312 bool SkMaskFilter::canFilterMaskGPU(const SkRRect& devRRect, | 312 bool SkMaskFilter::canFilterMaskGPU(const SkRRect& devRRect, |
| 313 const SkIRect& clipBounds, | 313 const SkIRect& clipBounds, |
| 314 const SkMatrix& ctm, | 314 const SkMatrix& ctm, |
| 315 SkRect* maskRect) const { | 315 SkRect* maskRect) const { |
| 316 return false; | 316 return false; |
| 317 } | 317 } |
| 318 | 318 |
| 319 bool SkMaskFilter::directFilterMaskGPU(GrTextureProvider* texProvider, | 319 bool SkMaskFilter::directFilterMaskGPU(GrTextureProvider* texProvider, |
| 320 GrDrawContext* drawContext, | 320 GrDrawContext* drawContext, |
| 321 GrRenderTarget* rt, | |
| 322 GrPaint* grp, | 321 GrPaint* grp, |
| 323 const GrClip&, | 322 const GrClip&, |
| 324 const SkMatrix& viewMatrix, | 323 const SkMatrix& viewMatrix, |
| 325 const SkStrokeRec& strokeRec, | 324 const SkStrokeRec& strokeRec, |
| 326 const SkPath& path) const { | 325 const SkPath& path) const { |
| 327 return false; | 326 return false; |
| 328 } | 327 } |
| 329 | 328 |
| 330 | 329 |
| 331 bool SkMaskFilter::directFilterRRectMaskGPU(GrTextureProvider* texProvider, | 330 bool SkMaskFilter::directFilterRRectMaskGPU(GrTextureProvider* texProvider, |
| 332 GrDrawContext* drawContext, | 331 GrDrawContext* drawContext, |
| 333 GrRenderTarget* rt, | |
| 334 GrPaint* grp, | 332 GrPaint* grp, |
| 335 const GrClip&, | 333 const GrClip&, |
| 336 const SkMatrix& viewMatrix, | 334 const SkMatrix& viewMatrix, |
| 337 const SkStrokeRec& strokeRec, | 335 const SkStrokeRec& strokeRec, |
| 338 const SkRRect& rrect) const { | 336 const SkRRect& rrect) const { |
| 339 return false; | 337 return false; |
| 340 } | 338 } |
| 341 | 339 |
| 342 bool SkMaskFilter::filterMaskGPU(GrTexture* src, | 340 bool SkMaskFilter::filterMaskGPU(GrTexture* src, |
| 343 const SkMatrix& ctm, | 341 const SkMatrix& ctm, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 356 srcM.fRowBytes = 0; | 354 srcM.fRowBytes = 0; |
| 357 srcM.fFormat = SkMask::kA8_Format; | 355 srcM.fFormat = SkMask::kA8_Format; |
| 358 | 356 |
| 359 SkIPoint margin; // ignored | 357 SkIPoint margin; // ignored |
| 360 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { | 358 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { |
| 361 dst->set(dstM.fBounds); | 359 dst->set(dstM.fBounds); |
| 362 } else { | 360 } else { |
| 363 dst->set(srcM.fBounds); | 361 dst->set(srcM.fBounds); |
| 364 } | 362 } |
| 365 } | 363 } |
| OLD | NEW |