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

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

Issue 1006213002: remove deprecated setFilterBitmap/isFilterBitmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | no next file » | 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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 SkPaint_DEFINED 8 #ifndef SkPaint_DEFINED
9 #define SkPaint_DEFINED 9 #define SkPaint_DEFINED
10 10
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 SkFilterQuality getFilterQuality() const { 331 SkFilterQuality getFilterQuality() const {
332 return (SkFilterQuality)fBitfields.fFilterQuality; 332 return (SkFilterQuality)fBitfields.fFilterQuality;
333 } 333 }
334 334
335 /** 335 /**
336 * Set the filter quality. This affects the quality (and performance) of 336 * Set the filter quality. This affects the quality (and performance) of
337 * drawing scaled images. 337 * drawing scaled images.
338 */ 338 */
339 void setFilterQuality(SkFilterQuality quality); 339 void setFilterQuality(SkFilterQuality quality);
340 340
341 /**
342 * If the predicate is true, set the filterLevel to Low, else set it to
343 * None.
344 */
345 SK_ATTR_DEPRECATED("use setFilterLevel")
346 void setFilterBitmap(bool doFilter) {
347 this->setFilterLevel(doFilter ? kLow_FilterLevel : kNone_FilterLevel);
348 }
349
350 /**
351 * Returns true if getFilterLevel() returns anything other than None.
352 */
353 SK_ATTR_DEPRECATED("use getFilterLevel")
354 bool isFilterBitmap() const {
355 return kNone_FilterLevel != this->getFilterLevel();
356 }
357
358 /** Styles apply to rect, oval, path, and text. 341 /** Styles apply to rect, oval, path, and text.
359 Bitmaps are always drawn in "fill", and lines are always drawn in 342 Bitmaps are always drawn in "fill", and lines are always drawn in
360 "stroke". 343 "stroke".
361 344
362 Note: strokeandfill implicitly draws the result with 345 Note: strokeandfill implicitly draws the result with
363 SkPath::kWinding_FillType, so if the original path is even-odd, the 346 SkPath::kWinding_FillType, so if the original path is even-odd, the
364 results may not appear the same as if it was drawn twice, filled and 347 results may not appear the same as if it was drawn twice, filled and
365 then stroked. 348 then stroked.
366 */ 349 */
367 enum Style { 350 enum Style {
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 friend class GrBitmapTextContext; 1127 friend class GrBitmapTextContext;
1145 friend class GrDistanceFieldTextContext; 1128 friend class GrDistanceFieldTextContext;
1146 friend class GrStencilAndCoverTextContext; 1129 friend class GrStencilAndCoverTextContext;
1147 friend class GrPathRendering; 1130 friend class GrPathRendering;
1148 friend class GrGLPathRendering; 1131 friend class GrGLPathRendering;
1149 friend class SkTextToPathIter; 1132 friend class SkTextToPathIter;
1150 friend class SkCanonicalizePaint; 1133 friend class SkCanonicalizePaint;
1151 }; 1134 };
1152 1135
1153 #endif 1136 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698