| Index: ppapi/proxy/serialized_structs.cc
|
| diff --git a/ppapi/proxy/serialized_structs.cc b/ppapi/proxy/serialized_structs.cc
|
| index ebd7ed01c0e86d75754938f08581f35359b01ff7..8c984d55dba8d3617401b01c357bdaf46689d633 100644
|
| --- a/ppapi/proxy/serialized_structs.cc
|
| +++ b/ppapi/proxy/serialized_structs.cc
|
| @@ -80,6 +80,40 @@ void SerializedFontDescription::SetToPPBrowserFontDescription(
|
| desc->word_spacing = word_spacing;
|
| }
|
|
|
| +SerializedTrueTypeFontDesc::SerializedTrueTypeFontDesc()
|
| + : family(),
|
| + generic_family(),
|
| + style(),
|
| + weight(),
|
| + width(),
|
| + charset() {
|
| +}
|
| +
|
| +SerializedTrueTypeFontDesc::~SerializedTrueTypeFontDesc() {}
|
| +
|
| +void SerializedTrueTypeFontDesc::SetFromPPTrueTypeFontDesc(
|
| + const PP_TrueTypeFontDesc_Dev& desc) {
|
| + StringVar* string_var = StringVar::FromPPVar(desc.family);
|
| + family = string_var ? string_var->value() : std::string();
|
| +
|
| + generic_family = desc.generic_family;
|
| + style = desc.style;
|
| + weight = desc.weight;
|
| + width = desc.width;
|
| + charset = desc.charset;
|
| +}
|
| +
|
| +void SerializedTrueTypeFontDesc::CopyToPPTrueTypeFontDesc(
|
| + PP_TrueTypeFontDesc_Dev* desc) const {
|
| + desc->family = StringVar::StringToPPVar(family);
|
| +
|
| + desc->generic_family = generic_family;
|
| + desc->style = style;
|
| + desc->weight = weight;
|
| + desc->width = width;
|
| + desc->charset = charset;
|
| +}
|
| +
|
| PPBFlash_DrawGlyphs_Params::PPBFlash_DrawGlyphs_Params()
|
| : instance(0),
|
| font_desc(),
|
|
|