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

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

Issue 377503004: Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*. (Closed) Base URL: https://skia.googlesource.com/skia.git@no_ref
Patch Set: Update YUV effect to reflect these changes. Created 6 years, 5 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/SkLocalMatrixShader.h ('k') | src/core/SkPictureShader.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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 return kUnimplemented_FilterReturn; 291 return kUnimplemented_FilterReturn;
292 } 292 }
293 293
294 SkMaskFilter::FilterReturn 294 SkMaskFilter::FilterReturn
295 SkMaskFilter::filterRectsToNine(const SkRect[], int count, const SkMatrix&, 295 SkMaskFilter::filterRectsToNine(const SkRect[], int count, const SkMatrix&,
296 const SkIRect& clipBounds, NinePatch*) const { 296 const SkIRect& clipBounds, NinePatch*) const {
297 return kUnimplemented_FilterReturn; 297 return kUnimplemented_FilterReturn;
298 } 298 }
299 299
300 #if SK_SUPPORT_GPU 300 #if SK_SUPPORT_GPU
301 bool SkMaskFilter::asNewEffect(GrEffectRef** effect, GrTexture*, const SkMatrix& ) const { 301 bool SkMaskFilter::asNewEffect(GrEffect** effect, GrTexture*, const SkMatrix&) c onst {
302 return false; 302 return false;
303 } 303 }
304 304
305 bool SkMaskFilter::canFilterMaskGPU(const SkRect& devBounds, 305 bool SkMaskFilter::canFilterMaskGPU(const SkRect& devBounds,
306 const SkIRect& clipBounds, 306 const SkIRect& clipBounds,
307 const SkMatrix& ctm, 307 const SkMatrix& ctm,
308 SkRect* maskRect) const { 308 SkRect* maskRect) const {
309 return false; 309 return false;
310 } 310 }
311 311
(...skipping 29 matching lines...) Expand all
341 srcM.fRowBytes = 0; 341 srcM.fRowBytes = 0;
342 srcM.fFormat = SkMask::kA8_Format; 342 srcM.fFormat = SkMask::kA8_Format;
343 343
344 SkIPoint margin; // ignored 344 SkIPoint margin; // ignored
345 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { 345 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) {
346 dst->set(dstM.fBounds); 346 dst->set(dstM.fBounds);
347 } else { 347 } else {
348 dst->set(srcM.fBounds); 348 dst->set(srcM.fBounds);
349 } 349 }
350 } 350 }
OLDNEW
« no previous file with comments | « src/core/SkLocalMatrixShader.h ('k') | src/core/SkPictureShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698