| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 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 | 8 |
| 9 #include "SkMaskFilter.h" | 9 #include "SkMaskFilter.h" |
| 10 #include "SkBlitter.h" | 10 #include "SkBlitter.h" |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 GrPaint* grp, | 329 GrPaint* grp, |
| 330 const GrClip&, | 330 const GrClip&, |
| 331 const SkMatrix& viewMatrix, | 331 const SkMatrix& viewMatrix, |
| 332 const SkStrokeRec& strokeRec, | 332 const SkStrokeRec& strokeRec, |
| 333 const SkRRect& rrect) const { | 333 const SkRRect& rrect) const { |
| 334 return false; | 334 return false; |
| 335 } | 335 } |
| 336 | 336 |
| 337 bool SkMaskFilter::filterMaskGPU(GrTexture* src, | 337 bool SkMaskFilter::filterMaskGPU(GrTexture* src, |
| 338 const SkMatrix& ctm, | 338 const SkMatrix& ctm, |
| 339 const SkRect& maskRect, | 339 const SkIRect& maskRect, |
| 340 GrTexture** result, | 340 GrTexture** result, |
| 341 bool canOverwriteSrc) const { | 341 bool canOverwriteSrc) const { |
| 342 return false; | 342 return false; |
| 343 } | 343 } |
| 344 #endif | 344 #endif |
| 345 | 345 |
| 346 void SkMaskFilter::computeFastBounds(const SkRect& src, SkRect* dst) const { | 346 void SkMaskFilter::computeFastBounds(const SkRect& src, SkRect* dst) const { |
| 347 SkMask srcM, dstM; | 347 SkMask srcM, dstM; |
| 348 | 348 |
| 349 srcM.fBounds = src.roundOut(); | 349 srcM.fBounds = src.roundOut(); |
| 350 srcM.fRowBytes = 0; | 350 srcM.fRowBytes = 0; |
| 351 srcM.fFormat = SkMask::kA8_Format; | 351 srcM.fFormat = SkMask::kA8_Format; |
| 352 | 352 |
| 353 SkIPoint margin; // ignored | 353 SkIPoint margin; // ignored |
| 354 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { | 354 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { |
| 355 dst->set(dstM.fBounds); | 355 dst->set(dstM.fBounds); |
| 356 } else { | 356 } else { |
| 357 dst->set(srcM.fBounds); | 357 dst->set(srcM.fBounds); |
| 358 } | 358 } |
| 359 } | 359 } |
| OLD | NEW |