| Index: content/renderer/pepper/gfx_conversion.h
|
| diff --git a/content/renderer/pepper/gfx_conversion.h b/content/renderer/pepper/gfx_conversion.h
|
| index 3b504bac7fe96410ffea9c562807acb37422568b..1c1fa11a333353a03090c5e5d8d1464892f79a88 100644
|
| --- a/content/renderer/pepper/gfx_conversion.h
|
| +++ b/content/renderer/pepper/gfx_conversion.h
|
| @@ -10,6 +10,7 @@
|
| #include "ppapi/c/pp_size.h"
|
| #include "ui/gfx/point.h"
|
| #include "ui/gfx/rect.h"
|
| +#include "ui/gfx/rect_f.h"
|
| #include "ui/gfx/size.h"
|
|
|
| // Conversions for graphics types between our gfx library and PPAPI.
|
| @@ -29,6 +30,10 @@ inline gfx::Rect PP_ToGfxRect(const PP_Rect& r) {
|
| return gfx::Rect(r.point.x, r.point.y, r.size.width, r.size.height);
|
| }
|
|
|
| +inline gfx::RectF PP_ToGfxRectF(const PP_FloatRect& r) {
|
| + return gfx::RectF(r.point.x, r.point.y, r.size.width, r.size.height);
|
| +}
|
| +
|
| inline PP_Rect PP_FromGfxRect(const gfx::Rect& r) {
|
| return PP_MakeRectFromXYWH(r.x(), r.y(), r.width(), r.height());
|
| }
|
|
|