aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkFontStyle.cpp
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2015-08-28 09:09:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-28 09:09:32 -0700
commit62ce0303fb3f9857ee3ab8df05934642c226b1a3 (patch)
tree4e665282b0badfc419da512d73568702cc630e97 /src/core/SkFontStyle.cpp
parent7445cef42f52e15de800207e8b14a3b24f444148 (diff)
Replace SkPin32 with SkTPin and remove.
SkPin32 is already just forwarding to SkTPin, so convert existing users and remove SkPin32. Review URL: https://codereview.chromium.org/1314583003
Diffstat (limited to 'src/core/SkFontStyle.cpp')
-rw-r--r--src/core/SkFontStyle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkFontStyle.cpp b/src/core/SkFontStyle.cpp
index 285d17a2b0..badf9d7a9d 100644
--- a/src/core/SkFontStyle.cpp
+++ b/src/core/SkFontStyle.cpp
@@ -18,9 +18,9 @@ SkFontStyle::SkFontStyle() {
SkFontStyle::SkFontStyle(int weight, int width, Slant slant) {
fUnion.fU32 = 0;
- fUnion.fR.fWeight = SkPin32(weight, kThin_Weight, kBlack_Weight);
- fUnion.fR.fWidth = SkPin32(width, kUltraCondensed_Width, kUltaExpanded_Width);
- fUnion.fR.fSlant = SkPin32(slant, kUpright_Slant, kItalic_Slant);
+ fUnion.fR.fWeight = SkTPin<int>(weight, kThin_Weight, kBlack_Weight);
+ fUnion.fR.fWidth = SkTPin<int>(width, kUltraCondensed_Width, kUltaExpanded_Width);
+ fUnion.fR.fSlant = SkTPin<int>(slant, kUpright_Slant, kItalic_Slant);
}
SkFontStyle::SkFontStyle(unsigned oldStyle) {