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

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

Issue 1823243002: Remove SK_SUPPORT_LEGACY_FILTERBOUNDS_RETURN. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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/SkImageFilter.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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkImageFilter_DEFINED 8 #ifndef SkImageFilter_DEFINED
9 #define SkImageFilter_DEFINED 9 #define SkImageFilter_DEFINED
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 * kReverse_MapDirection is used to determine which rect of the source 163 * kReverse_MapDirection is used to determine which rect of the source
164 * image would be required to fill the given rect (typically, clip bounds). 164 * image would be required to fill the given rect (typically, clip bounds).
165 * Used for clipping and temp-buffer allocations, so the result need not 165 * Used for clipping and temp-buffer allocations, so the result need not
166 * be exact, but should never be smaller than the real answer. The default 166 * be exact, but should never be smaller than the real answer. The default
167 * implementation recursively unions all input bounds, or returns the 167 * implementation recursively unions all input bounds, or returns the
168 * source rect if no inputs. 168 * source rect if no inputs.
169 */ 169 */
170 SkIRect filterBounds(const SkIRect& src, const SkMatrix& ctm, 170 SkIRect filterBounds(const SkIRect& src, const SkMatrix& ctm,
171 MapDirection = kReverse_MapDirection) const; 171 MapDirection = kReverse_MapDirection) const;
172 172
173 #ifdef SK_SUPPORT_LEGACY_FILTERBOUNDS_RETURN
174 /* DEPRECATED */
175 bool filterBounds(const SkIRect& src, const SkMatrix& ctm, SkIRect* dst,
176 MapDirection = kReverse_MapDirection) const;
177 #endif
178
179 /** 173 /**
180 * Returns true if the filter can be processed on the GPU. This is most 174 * Returns true if the filter can be processed on the GPU. This is most
181 * often used for multi-pass effects, where intermediate results must be 175 * often used for multi-pass effects, where intermediate results must be
182 * rendered to textures. For single-pass effects, use asFragmentProcessor( ). 176 * rendered to textures. For single-pass effects, use asFragmentProcessor( ).
183 * The default implementation returns asFragmentProcessor(NULL, NULL, SkMat rix::I(), 177 * The default implementation returns asFragmentProcessor(NULL, NULL, SkMat rix::I(),
184 * SkIRect()). 178 * SkIRect()).
185 */ 179 */
186 virtual bool canFilterImageGPU() const; 180 virtual bool canFilterImageGPU() const;
187 181
188 /** 182 /**
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 */ 477 */
484 #define SK_IMAGEFILTER_UNFLATTEN_COMMON(localVar, expectedCount) \ 478 #define SK_IMAGEFILTER_UNFLATTEN_COMMON(localVar, expectedCount) \
485 Common localVar; \ 479 Common localVar; \
486 do { \ 480 do { \
487 if (!localVar.unflatten(buffer, expectedCount)) { \ 481 if (!localVar.unflatten(buffer, expectedCount)) { \
488 return NULL; \ 482 return NULL; \
489 } \ 483 } \
490 } while (0) 484 } while (0)
491 485
492 #endif 486 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698