diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-06-12 02:06:36 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-06-12 02:06:36 +0000 |
commit | f16c899a74a82241a690d08250698cbb8c2609df (patch) | |
tree | f214684edf78f48afcbe7ca6bc46acfd6ec5d2c1 /include | |
parent | 1220e1c28a6fb75817eec056fc307190d50ae8e6 (diff) |
add equals()
git-svn-id: http://skia.googlecode.com/svn/trunk@210 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkSize.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkSize.h b/include/core/SkSize.h index ac426d0d8c..8c81b0116a 100644 --- a/include/core/SkSize.h +++ b/include/core/SkSize.h @@ -37,6 +37,10 @@ template <typename T> struct SkTSize { fHeight = 0; } } + + bool equals(T w, T h) const { + return fWidth == w && fHeight == h; + } }; template <typename T> |