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

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

Issue 2100873002: Fix up flags to SkGpuBlurUtils::GaussianBlur (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 | « no previous file | src/core/SkMaskFilter.cpp » ('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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 GrDrawContext* drawContext, 126 GrDrawContext* drawContext,
127 GrPaint* grp, 127 GrPaint* grp,
128 const GrClip&, 128 const GrClip&,
129 const SkMatrix& viewMatrix, 129 const SkMatrix& viewMatrix,
130 const SkStrokeRec& strokeRec, 130 const SkStrokeRec& strokeRec,
131 const SkRRect& rrect) const; 131 const SkRRect& rrect) const;
132 132
133 /** 133 /**
134 * This function is used to implement filters that require an explicit src m ask. It should only 134 * This function is used to implement filters that require an explicit src m ask. It should only
135 * be called if canFilterMaskGPU returned true and the maskRect param should be the output from 135 * be called if canFilterMaskGPU returned true and the maskRect param should be the output from
136 * that call. canOverwriteSrc indicates whether the implementation may treat src as a scratch 136 * that call.
137 * texture and overwrite its contents. When true it is also legal to return src as the result.
138 * Implementations are free to get the GrContext from the src texture in ord er to create 137 * Implementations are free to get the GrContext from the src texture in ord er to create
139 * additional textures and perform multiple passes. 138 * additional textures and perform multiple passes.
140 */ 139 */
141 virtual bool filterMaskGPU(GrTexture* src, 140 virtual bool filterMaskGPU(GrTexture* src,
142 const SkMatrix& ctm, 141 const SkMatrix& ctm,
143 const SkIRect& maskRect, 142 const SkIRect& maskRect,
144 GrTexture** result, 143 GrTexture** result) const;
145 bool canOverwriteSrc) const;
146 #endif 144 #endif
147 145
148 /** 146 /**
149 * The fast bounds function is used to enable the paint to be culled early 147 * The fast bounds function is used to enable the paint to be culled early
150 * in the drawing pipeline. This function accepts the current bounds of the 148 * in the drawing pipeline. This function accepts the current bounds of the
151 * paint as its src param and the filter adjust those bounds using its 149 * paint as its src param and the filter adjust those bounds using its
152 * current mask and returns the result using the dest param. Callers are 150 * current mask and returns the result using the dest param. Callers are
153 * allowed to provide the same struct for both src and dest so each 151 * allowed to provide the same struct for both src and dest so each
154 * implementation must accomodate that behavior. 152 * implementation must accomodate that behavior.
155 * 153 *
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 mask and then call filterMask(). If this returns true, the specified blitte r will be called 232 mask and then call filterMask(). If this returns true, the specified blitte r will be called
235 to render that mask. Returns false if filterMask() returned false. 233 to render that mask. Returns false if filterMask() returned false.
236 */ 234 */
237 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste rClip&, 235 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste rClip&,
238 SkBlitter*) const; 236 SkBlitter*) const;
239 237
240 typedef SkFlattenable INHERITED; 238 typedef SkFlattenable INHERITED;
241 }; 239 };
242 240
243 #endif 241 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkMaskFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698