add width() and height() helpers



git-svn-id: http://skia.googlecode.com/svn/trunk@7511 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/gm.h b/gm/gm.h
index 0af9285..6ffb029 100644
--- a/gm/gm.h
+++ b/gm/gm.h
@@ -53,6 +53,13 @@
             return this->onGetFlags();
         }
 
+        SkScalar width() {
+            return SkIntToScalar(this->getISize().width());
+        }
+        SkScalar height() {
+            return SkIntToScalar(this->getISize().width());
+        }
+
         // TODO(vandebo) Instead of exposing this, we should run all the GMs
         // with and without an initial transform.
         // Most GMs will return the identity matrix, but some PDFs tests