Use Skia style cast in SkDeviceProperties.
(Alternative to 7329.)
git-svn-id: http://skia.googlecode.com/svn/trunk@7339 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/core/SkDeviceProperties.h b/include/core/SkDeviceProperties.h
index ab7dec8..2c2e952 100644
--- a/include/core/SkDeviceProperties.h
+++ b/include/core/SkDeviceProperties.h
@@ -79,12 +79,12 @@
static Geometry MakeDefault() {
Orientation orientation = fromOldOrientation(SkFontHost::GetSubpixelOrientation()); //kHorizontal_Orientation
Layout layout = fromOldLayout(SkFontHost::GetSubpixelOrder()); //kRGB_Layout
- Geometry ret = { uint8_t(orientation | layout) };
+ Geometry ret = { SkToU8(orientation | layout) };
return ret;
}
static Geometry Make(Orientation orientation, Layout layout) {
- Geometry ret = { uint8_t(orientation | layout) };
+ Geometry ret = { SkToU8(orientation | layout) };
return ret;
}