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

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

Issue 1205803002: remove SK_SUPPORT_LEGACY_FILTERLEVEL_ENUM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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 | include/effects/SkPictureImageFilter.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 * 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 bool isDevKernText() const { 275 bool isDevKernText() const {
276 return SkToBool(this->getFlags() & kDevKernText_Flag); 276 return SkToBool(this->getFlags() & kDevKernText_Flag);
277 } 277 }
278 278
279 /** Helper for setFlags(), setting or clearing the kKernText_Flag bit 279 /** Helper for setFlags(), setting or clearing the kKernText_Flag bit
280 @param kernText true to set the kKernText_Flag bit in the paint's 280 @param kernText true to set the kKernText_Flag bit in the paint's
281 flags, false to clear it. 281 flags, false to clear it.
282 */ 282 */
283 void setDevKernText(bool devKernText); 283 void setDevKernText(bool devKernText);
284 284
285 #ifdef SK_SUPPORT_LEGACY_FILTERLEVEL_ENUM
286 enum FilterLevel {
287 kNone_FilterLevel = kNone_SkFilterQuality,
288 kLow_FilterLevel = kLow_SkFilterQuality,
289 kMedium_FilterLevel = kMedium_SkFilterQuality,
290 kHigh_FilterLevel = kHigh_SkFilterQuality
291 };
292
293 /** 285 /**
294 * Return the filter level. This affects the quality (and performance) of 286 * Return the filter level. This affects the quality (and performance) of
295 * drawing scaled images. 287 * drawing scaled images.
296 */
297 FilterLevel getFilterLevel() const {
298 return (FilterLevel)this->getFilterQuality();
299 }
300
301 /**
302 * Set the filter level. This affects the quality (and performance) of
303 * drawing scaled images.
304 */
305 void setFilterLevel(FilterLevel level) {
306 this->setFilterQuality((SkFilterQuality)level);
307 }
308 #endif
309
310 /**
311 * Return the filter level. This affects the quality (and performance) of
312 * drawing scaled images.
313 */ 288 */
314 SkFilterQuality getFilterQuality() const { 289 SkFilterQuality getFilterQuality() const {
315 return (SkFilterQuality)fBitfields.fFilterQuality; 290 return (SkFilterQuality)fBitfields.fFilterQuality;
316 } 291 }
317 292
318 /** 293 /**
319 * Set the filter quality. This affects the quality (and performance) of 294 * Set the filter quality. This affects the quality (and performance) of
320 * drawing scaled images. 295 * drawing scaled images.
321 */ 296 */
322 void setFilterQuality(SkFilterQuality quality); 297 void setFilterQuality(SkFilterQuality quality);
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 friend class GrStencilAndCoverTextContext; 1095 friend class GrStencilAndCoverTextContext;
1121 friend class GrPathRendering; 1096 friend class GrPathRendering;
1122 friend class GrTextContext; 1097 friend class GrTextContext;
1123 friend class GrGLPathRendering; 1098 friend class GrGLPathRendering;
1124 friend class SkScalerContext; 1099 friend class SkScalerContext;
1125 friend class SkTextToPathIter; 1100 friend class SkTextToPathIter;
1126 friend class SkCanonicalizePaint; 1101 friend class SkCanonicalizePaint;
1127 }; 1102 };
1128 1103
1129 #endif 1104 #endif
OLDNEW
« no previous file with comments | « no previous file | include/effects/SkPictureImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698