Use Skia style cast in SkDeviceProperties.

(Alternative to 7329.)


git-svn-id: http://skia.googlecode.com/svn/trunk@7339 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bungeman@google.com 2013-01-23 15:31:43 +00:00
parent eebdd966c1
commit 23c2939a4f

View File

@ -79,12 +79,12 @@ struct SkDeviceProperties {
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;
}