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

Side by Side Diff: include/core/SkMaskFilter.h

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 | « include/core/SkImageFilter.h ('k') | include/core/SkShader.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 #ifndef SkMaskFilter_DEFINED 10 #ifndef SkMaskFilter_DEFINED
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 /** 65 /**
66 * Returns true if the filter can be expressed a single-pass GrEffect witho ut requiring an 66 * Returns true if the filter can be expressed a single-pass GrEffect witho ut requiring an
67 * explicit input mask. Per-pixel, the effect receives the incoming mask's coverage as 67 * explicit input mask. Per-pixel, the effect receives the incoming mask's coverage as
68 * the input color and outputs the filtered covereage value. This means tha t each pixel's 68 * the input color and outputs the filtered covereage value. This means tha t each pixel's
69 * filtered coverage must only depend on the unfiltered mask value for that pixel and not on 69 * filtered coverage must only depend on the unfiltered mask value for that pixel and not on
70 * surrounding values. 70 * surrounding values.
71 * 71 *
72 * If effect is non-NULL, a new GrEffect instance is stored in it. The calle r assumes ownership 72 * If effect is non-NULL, a new GrEffect instance is stored in it. The calle r assumes ownership
73 * of the effect and must unref it. 73 * of the effect and must unref it.
74 */ 74 */
75 virtual bool asNewEffect(GrEffectRef** effect, 75 virtual bool asNewEffect(GrEffect** effect,
76 GrTexture*, 76 GrTexture*,
77 const SkMatrix& ctm) const; 77 const SkMatrix& ctm) const;
78 78
79 /** 79 /**
80 * If asNewEffect() fails the filter may be implemented on the GPU by a sub class overriding 80 * If asNewEffect() fails the filter may be implemented on the GPU by a sub class overriding
81 * filterMaskGPU (declared below). That code path requires constructing a s rc mask as input. 81 * filterMaskGPU (declared below). That code path requires constructing a s rc mask as input.
82 * Since that is a potentially expensive operation, the subclass must also override this 82 * Since that is a potentially expensive operation, the subclass must also override this
83 * function to indicate whether filterTextureMaskGPU would succeeed if the mask were to be 83 * function to indicate whether filterTextureMaskGPU would succeeed if the mask were to be
84 * created. 84 * created.
85 * 85 *
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 mask and then call filterMask(). If this returns true, the specified blitte r will be called 211 mask and then call filterMask(). If this returns true, the specified blitte r will be called
212 to render that mask. Returns false if filterMask() returned false. 212 to render that mask. Returns false if filterMask() returned false.
213 */ 213 */
214 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste rClip&, 214 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste rClip&,
215 SkBlitter*, SkPaint::Style style) const; 215 SkBlitter*, SkPaint::Style style) const;
216 216
217 typedef SkFlattenable INHERITED; 217 typedef SkFlattenable INHERITED;
218 }; 218 };
219 219
220 #endif 220 #endif
OLDNEW
« no previous file with comments | « include/core/SkImageFilter.h ('k') | include/core/SkShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698