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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 SkMaskFilter::filterRectsToNine(const SkRect[], int count, const SkMatrix&, | 302 SkMaskFilter::filterRectsToNine(const SkRect[], int count, const SkMatrix&, |
303 const SkIRect& clipBounds, NinePatch*) const { | 303 const SkIRect& clipBounds, NinePatch*) const { |
304 return kUnimplemented_FilterReturn; | 304 return kUnimplemented_FilterReturn; |
305 } | 305 } |
306 | 306 |
307 #if SK_SUPPORT_GPU | 307 #if SK_SUPPORT_GPU |
308 bool SkMaskFilter::asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const
SkMatrix&) const { | 308 bool SkMaskFilter::asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const
SkMatrix&) const { |
309 return false; | 309 return false; |
310 } | 310 } |
311 | 311 |
312 bool SkMaskFilter::canFilterMaskGPU(const SkRect& devBounds, | 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, | 321 GrRenderTarget* rt, |
322 GrPaint* grp, | 322 GrPaint* grp, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 srcM.fRowBytes = 0; | 356 srcM.fRowBytes = 0; |
357 srcM.fFormat = SkMask::kA8_Format; | 357 srcM.fFormat = SkMask::kA8_Format; |
358 | 358 |
359 SkIPoint margin; // ignored | 359 SkIPoint margin; // ignored |
360 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { | 360 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { |
361 dst->set(dstM.fBounds); | 361 dst->set(dstM.fBounds); |
362 } else { | 362 } else { |
363 dst->set(srcM.fBounds); | 363 dst->set(srcM.fBounds); |
364 } | 364 } |
365 } | 365 } |
OLD | NEW |