Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/core/SkMaskFilter.cpp

Issue 1311583005: Add special case circle blur for Ganesh (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix no-GPU build Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkColor.cpp ('k') | src/effects/GrCircleBlurFragmentProcessor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/core/SkColor.cpp ('k') | src/effects/GrCircleBlurFragmentProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698