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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 } | 309 } |
310 | 310 |
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 GrPaint* grp, | 320 GrPaint* grp, |
320 const SkMatrix& viewMatrix, | 321 const SkMatrix& viewMatrix, |
321 const SkStrokeRec& strokeRec, | 322 const SkStrokeRec& strokeRec, |
322 const SkPath& path) const { | 323 const SkPath& path) const { |
323 return false; | 324 return false; |
324 } | 325 } |
325 | 326 |
326 | 327 |
327 bool SkMaskFilter::directFilterRRectMaskGPU(GrContext* context, | 328 bool SkMaskFilter::directFilterRRectMaskGPU(GrContext* context, |
| 329 GrRenderTarget* rt, |
328 GrPaint* grp, | 330 GrPaint* grp, |
329 const SkMatrix& viewMatrix, | 331 const SkMatrix& viewMatrix, |
330 const SkStrokeRec& strokeRec, | 332 const SkStrokeRec& strokeRec, |
331 const SkRRect& rrect) const { | 333 const SkRRect& rrect) const { |
332 return false; | 334 return false; |
333 } | 335 } |
334 | 336 |
335 bool SkMaskFilter::filterMaskGPU(GrTexture* src, | 337 bool SkMaskFilter::filterMaskGPU(GrTexture* src, |
336 const SkMatrix& ctm, | 338 const SkMatrix& ctm, |
337 const SkRect& maskRect, | 339 const SkRect& maskRect, |
(...skipping 11 matching lines...) Expand all Loading... |
349 srcM.fRowBytes = 0; | 351 srcM.fRowBytes = 0; |
350 srcM.fFormat = SkMask::kA8_Format; | 352 srcM.fFormat = SkMask::kA8_Format; |
351 | 353 |
352 SkIPoint margin; // ignored | 354 SkIPoint margin; // ignored |
353 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { | 355 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { |
354 dst->set(dstM.fBounds); | 356 dst->set(dstM.fBounds); |
355 } else { | 357 } else { |
356 dst->set(srcM.fBounds); | 358 dst->set(srcM.fBounds); |
357 } | 359 } |
358 } | 360 } |
OLD | NEW |