diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-15 23:58:33 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-15 23:58:33 +0000 |
commit | 5e9ca8a510914662f4795ac43fa0b35ef5e449d3 (patch) | |
tree | 8826e2c0f6113c738f344085b042ef16a5885b38 /skia | |
parent | 2964d2080646dc87150c3abb140ccac800282958 (diff) | |
download | chromium_src-5e9ca8a510914662f4795ac43fa0b35ef5e449d3.zip chromium_src-5e9ca8a510914662f4795ac43fa0b35ef5e449d3.tar.gz chromium_src-5e9ca8a510914662f4795ac43fa0b35ef5e449d3.tar.bz2 |
remoting: Move CGRectToSkIRect() to the only file where it's called
The alternative would be to add SK_API to that function.
BUG=90078
TEST=none
Review URL: http://codereview.chromium.org/9705064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127036 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/skia_utils_mac.h | 1 | ||||
-rw-r--r-- | skia/ext/skia_utils_mac.mm | 10 |
2 files changed, 0 insertions, 11 deletions
diff --git a/skia/ext/skia_utils_mac.h b/skia/ext/skia_utils_mac.h index 8d11165..959da6c 100644 --- a/skia/ext/skia_utils_mac.h +++ b/skia/ext/skia_utils_mac.h @@ -52,7 +52,6 @@ SK_API CGAffineTransform SkMatrixToCGAffineTransform(const SkMatrix& matrix); // Rectangle converters. SkRect CGRectToSkRect(const CGRect& rect); -SkIRect CGRectToSkIRect(const CGRect& rect); // Converts a Skia rect to a CoreGraphics CGRect. CGRect SkIRectToCGRect(const SkIRect& rect); diff --git a/skia/ext/skia_utils_mac.mm b/skia/ext/skia_utils_mac.mm index d639460..c45f335 100644 --- a/skia/ext/skia_utils_mac.mm +++ b/skia/ext/skia_utils_mac.mm @@ -136,16 +136,6 @@ CGAffineTransform SkMatrixToCGAffineTransform(const SkMatrix& matrix) { matrix[SkMatrix::kMTransY]); } -SkIRect CGRectToSkIRect(const CGRect& rect) { - SkIRect sk_rect = { - SkScalarRound(rect.origin.x), - SkScalarRound(rect.origin.y), - SkScalarRound(rect.origin.x + rect.size.width), - SkScalarRound(rect.origin.y + rect.size.height) - }; - return sk_rect; -} - SkRect CGRectToSkRect(const CGRect& rect) { SkRect sk_rect = { rect.origin.x, |