diff options
author | 2013-02-01 15:01:24 +0000 | |
---|---|---|
committer | 2013-02-01 15:01:24 +0000 | |
commit | 487b5606e2ddaf15d733b7d46fe2bfa2246aa51d (patch) | |
tree | ed43ccb41ce9c365ad6b2450044af8ee318ef141 /gm | |
parent | ba3a3c93b255639f7841b973294a938b103491f3 (diff) |
add width() and height() helpers
git-svn-id: http://skia.googlecode.com/svn/trunk@7511 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r-- | gm/gm.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -53,6 +53,13 @@ namespace skiagm { 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 |