Bug 719629 - Add ThebesIntSize() convertor function. r=mattwoodrow
authorJoe Drew <joe@drew.ca>
Fri, 27 Jan 2012 13:09:09 -0500
changeset 86834 051f094b80a7dec261d96079733de0e29cbb2b63
parent 86833 151ed82c3193ad05d943099f3f41ab2d395bb379
child 86835 2567134e9924ccb89962095bf7f9ee803c6aaac5
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs719629
milestone12.0a1
Bug 719629 - Add ThebesIntSize() convertor function. r=mattwoodrow
gfx/thebes/gfx2DGlue.h
--- a/gfx/thebes/gfx2DGlue.h
+++ b/gfx/thebes/gfx2DGlue.h
@@ -93,16 +93,21 @@ inline gfxPoint ThebesPoint(const Point 
   return gfxPoint(aPoint.x, aPoint.y);
 }
 
 inline gfxSize ThebesSize(const Size &aSize)
 {
   return gfxSize(aSize.width, aSize.height);
 }
 
+inline gfxIntSize ThebesIntSize(const IntSize &aSize)
+{
+  return gfxIntSize(aSize.width, aSize.height);
+}
+
 inline gfxRect ThebesRect(const Rect &aRect)
 {
   return gfxRect(aRect.x, aRect.y, aRect.width, aRect.height);
 }
 
 inline gfxRGBA ThebesRGBA(const Color &aColor)
 {
   return gfxRGBA(aColor.r, aColor.g, aColor.b, aColor.a);