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

Side by Side Diff: src/core/SkScalerContext.h

Issue 883833002: Remove unused methods from SkScalerContext. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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/SkScalerContext.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 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 SkScalerContext_DEFINED 8 #ifndef SkScalerContext_DEFINED
9 #define SkScalerContext_DEFINED 9 #define SkScalerContext_DEFINED
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 uint8_t fMaskFormat; 75 uint8_t fMaskFormat;
76 uint8_t fStrokeJoin; 76 uint8_t fStrokeJoin;
77 uint16_t fFlags; 77 uint16_t fFlags;
78 // Warning: when adding members note that the size of this structure 78 // Warning: when adding members note that the size of this structure
79 // must be a multiple of 4. SkDescriptor requires that its arguments be 79 // must be a multiple of 4. SkDescriptor requires that its arguments be
80 // multiples of four and this structure is put in an SkDescriptor in 80 // multiples of four and this structure is put in an SkDescriptor in
81 // SkPaint::MakeRec. 81 // SkPaint::MakeRec.
82 82
83 void getMatrixFrom2x2(SkMatrix*) const; 83 void getMatrixFrom2x2(SkMatrix*) const;
84 void getLocalMatrix(SkMatrix*) const; 84 void getLocalMatrix(SkMatrix*) const;
85 void getLocalMatrixWithoutTextSize(SkMatrix*) const;
86 void getSingleMatrix(SkMatrix*) const; 85 void getSingleMatrix(SkMatrix*) const;
87 void getSingleMatrixWithoutTextSize(SkMatrix*) const;
88 86
89 /** The kind of scale which will be applied by the underlying port (pre-matr ix). */ 87 /** The kind of scale which will be applied by the underlying port (pre-matr ix). */
90 enum PreMatrixScale { 88 enum PreMatrixScale {
91 kFull_PreMatrixScale, // The underlying port can apply both x and y sca le. 89 kFull_PreMatrixScale, // The underlying port can apply both x and y sca le.
92 kVertical_PreMatrixScale, // The underlying port can only apply a y sca le. 90 kVertical_PreMatrixScale, // The underlying port can only apply a y sca le.
93 kVerticalInteger_PreMatrixScale // The underlying port can only apply a n integer y scale. 91 kVerticalInteger_PreMatrixScale // The underlying port can only apply a n integer y scale.
94 }; 92 };
95 /** 93 /**
96 * Compute useful matrices for use with sizing in underlying libraries. 94 * Compute useful matrices for use with sizing in underlying libraries.
97 * 95 *
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 return static_cast<SkPaint::Hinting>(hint); 357 return static_cast<SkPaint::Hinting>(hint);
360 } 358 }
361 359
362 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) { 360 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) {
363 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | 361 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) |
364 (hinting << SkScalerContext::kHinting_Shift); 362 (hinting << SkScalerContext::kHinting_Shift);
365 } 363 }
366 364
367 365
368 #endif 366 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkScalerContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698