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

Side by Side Diff: skia/ext/skia_utils_win.h

Issue 1467403002: Move Windows DC-initialization to skia_utils_win.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-metafile-from-device
Patch Set: Rebase again Created 5 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
« no previous file with comments | « skia/ext/platform_device_win.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')
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 SKIA_EXT_SKIA_UTILS_WIN_H_ 5 #ifndef SKIA_EXT_SKIA_UTILS_WIN_H_
6 #define SKIA_EXT_SKIA_UTILS_WIN_H_ 6 #define SKIA_EXT_SKIA_UTILS_WIN_H_
7 7
8 #include "third_party/skia/include/core/SkColor.h" 8 #include "third_party/skia/include/core/SkColor.h"
9 9
10 #include "build/build_config.h"
11 #include <windows.h>
12
10 struct SkIRect; 13 struct SkIRect;
11 struct SkPoint; 14 struct SkPoint;
12 struct SkRect; 15 struct SkRect;
13 typedef unsigned long DWORD; 16 typedef unsigned long DWORD;
14 typedef DWORD COLORREF; 17 typedef DWORD COLORREF;
15 typedef struct tagPOINT POINT; 18 typedef struct tagPOINT POINT;
16 typedef struct tagRECT RECT; 19 typedef struct tagRECT RECT;
17 20
18 namespace skia { 21 namespace skia {
19 22
(...skipping 16 matching lines...) Expand all
36 inline const RECT& SkIRectToRECT(const SkIRect& rect) { 39 inline const RECT& SkIRectToRECT(const SkIRect& rect) {
37 return reinterpret_cast<const RECT&>(rect); 40 return reinterpret_cast<const RECT&>(rect);
38 } 41 }
39 42
40 // Converts COLORREFs (0BGR) to the ARGB layout Skia expects. 43 // Converts COLORREFs (0BGR) to the ARGB layout Skia expects.
41 SK_API SkColor COLORREFToSkColor(COLORREF color); 44 SK_API SkColor COLORREFToSkColor(COLORREF color);
42 45
43 // Converts ARGB to COLORREFs (0BGR). 46 // Converts ARGB to COLORREFs (0BGR).
44 SK_API COLORREF SkColorToCOLORREF(SkColor color); 47 SK_API COLORREF SkColorToCOLORREF(SkColor color);
45 48
49 // Initializes the default settings and colors in a device context.
50 SK_API void InitializeDC(HDC context);
51
46 } // namespace skia 52 } // namespace skia
47 53
48 #endif // SKIA_EXT_SKIA_UTILS_WIN_H_ 54 #endif // SKIA_EXT_SKIA_UTILS_WIN_H_
49 55
OLDNEW
« no previous file with comments | « skia/ext/platform_device_win.cc ('k') | skia/ext/skia_utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698