Speculative fix for cros_daisy compilation failure
include/core/SkDeviceProperties.h:82:51: error: narrowing conversion of '(((int)orientation) | ((int)layout))' from 'int' to 'uint8_t unreviewed git-svn-id: http://skia.googlecode.com/svn/trunk@7329 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
d507775a8b
commit
5133fc73fe
@ -79,12 +79,12 @@ struct SkDeviceProperties {
|
|||||||
static Geometry MakeDefault() {
|
static Geometry MakeDefault() {
|
||||||
Orientation orientation = fromOldOrientation(SkFontHost::GetSubpixelOrientation()); //kHorizontal_Orientation
|
Orientation orientation = fromOldOrientation(SkFontHost::GetSubpixelOrientation()); //kHorizontal_Orientation
|
||||||
Layout layout = fromOldLayout(SkFontHost::GetSubpixelOrder()); //kRGB_Layout
|
Layout layout = fromOldLayout(SkFontHost::GetSubpixelOrder()); //kRGB_Layout
|
||||||
Geometry ret = { orientation | layout };
|
Geometry ret = { uint8_t(orientation | layout) };
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Geometry Make(Orientation orientation, Layout layout) {
|
static Geometry Make(Orientation orientation, Layout layout) {
|
||||||
Geometry ret = { orientation | layout };
|
Geometry ret = { uint8_t(orientation | layout) };
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user