Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: base/gfx/skia_utils_mac.h

Issue 12842: Move convolver, image_operations, and skia_utils from base/gfx to skia/ext.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/gfx/skia_utils.cc ('k') | base/gfx/skia_utils_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5
6 #ifndef BASE_GFX_SKIA_UTILS_MAC_H__
7 #define BASE_GFX_SKIA_UTILS_MAC_H__
8
9 #include "SkColor.h"
10 #include <CoreGraphics/CGColor.h>
11
12 struct SkMatrix;
13 struct SkIRect;
14 struct SkPoint;
15 struct SkRect;
16
17 namespace gfx {
18
19 // Converts a Skia point to a CoreGraphics CGPoint.
20 // Both use same in-memory format.
21 inline const CGPoint& SkPointToCGPoint(const SkPoint& point) {
22 return reinterpret_cast<const CGPoint&>(point);
23 }
24
25 // Converts a CoreGraphics point to a Skia CGPoint.
26 // Both use same in-memory format.
27 inline const SkPoint& CGPointToSkPoint(const CGPoint& point) {
28 return reinterpret_cast<const SkPoint&>(point);
29 }
30
31 // Matrix converters.
32 CGAffineTransform SkMatrixToCGAffineTransform(const SkMatrix& matrix);
33
34 // Rectangle converters.
35 SkRect CGRectToSkRect(const CGRect& rect);
36 SkIRect CGRectToSkIRect(const CGRect& rect);
37
38 // Converts a Skia rect to a CoreGraphics CGRect.
39 CGRect SkIRectToCGRect(const SkIRect& rect);
40 CGRect SkRectToCGRect(const SkRect& rect);
41
42 // Converts CGColorRef to the ARGB layout Skia expects.
43 SkColor CGColorRefToSkColor(CGColorRef color);
44
45 // Converts ARGB to CGColorRef.
46 CGColorRef SkColorToCGColorRef(SkColor color);
47
48 } // namespace gfx
49
50 #endif
51
OLDNEW
« no previous file with comments | « base/gfx/skia_utils.cc ('k') | base/gfx/skia_utils_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698