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

Side by Side Diff: skia/ext/skia_utils_win.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 | « skia/ext/skia_utils_mac.cc ('k') | skia/ext/skia_utils_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/base/gfx/skia_utils.h:r69-2775
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_GFX_SKIA_UTILS_H__ 5 #ifndef SKIA_EXT_SKIA_UTILS_WIN_H_
6 #define BASE_GFX_SKIA_UTILS_H__ 6 #define SKIA_EXT_SKIA_UTILS_WIN_H_
7 7
8 #include "SkColor.h" 8 #include "SkColor.h"
9 #include "SkShader.h" 9 #include "SkShader.h"
10 10
11 struct SkIRect; 11 struct SkIRect;
12 struct SkPoint; 12 struct SkPoint;
13 struct SkRect; 13 struct SkRect;
14 typedef unsigned long DWORD; 14 typedef unsigned long DWORD;
15 typedef DWORD COLORREF; 15 typedef DWORD COLORREF;
16 typedef struct tagPOINT POINT; 16 typedef struct tagPOINT POINT;
17 typedef struct tagRECT RECT; 17 typedef struct tagRECT RECT;
18 18
19 namespace gfx { 19 namespace skia {
20 20
21 // Converts a Skia point to a Windows POINT. 21 // Converts a Skia point to a Windows POINT.
22 POINT SkPointToPOINT(const SkPoint& point); 22 POINT SkPointToPOINT(const SkPoint& point);
23 23
24 // Converts a Windows RECT to a Skia rect. 24 // Converts a Windows RECT to a Skia rect.
25 SkRect RECTToSkRect(const RECT& rect); 25 SkRect RECTToSkRect(const RECT& rect);
26 26
27 // Converts a Windows RECT to a Skia rect. 27 // Converts a Windows RECT to a Skia rect.
28 // Both use same in-memory format. Verified by COMPILE_ASSERT() in 28 // Both use same in-memory format. Verified by COMPILE_ASSERT() in
29 // skia_utils.cc. 29 // skia_utils.cc.
(...skipping 13 matching lines...) Expand all
43 int end_point, 43 int end_point,
44 SkColor start_color, 44 SkColor start_color,
45 SkColor end_color); 45 SkColor end_color);
46 46
47 // Converts COLORREFs (0BGR) to the ARGB layout Skia expects. 47 // Converts COLORREFs (0BGR) to the ARGB layout Skia expects.
48 SkColor COLORREFToSkColor(COLORREF color); 48 SkColor COLORREFToSkColor(COLORREF color);
49 49
50 // Converts ARGB to COLORREFs (0BGR). 50 // Converts ARGB to COLORREFs (0BGR).
51 COLORREF SkColorToCOLORREF(SkColor color); 51 COLORREF SkColorToCOLORREF(SkColor color);
52 52
53 } // namespace gfx 53 } // namespace skia
54 54
55 #endif 55 #endif // SKIA_EXT_SKIA_UTILS_WIN_H_
56 56
OLDNEW
« no previous file with comments | « skia/ext/skia_utils_mac.cc ('k') | skia/ext/skia_utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698