OLD | NEW |
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 #include "third_party/skia/include/core/SkMatrix.h" | 9 #include "third_party/skia/include/core/SkMatrix.h" |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // Converts scale, skew, and translation to Windows format and sets it on the | 53 // Converts scale, skew, and translation to Windows format and sets it on the |
54 // HDC. | 54 // HDC. |
55 SK_API void LoadTransformToDC(HDC dc, const SkMatrix& matrix); | 55 SK_API void LoadTransformToDC(HDC dc, const SkMatrix& matrix); |
56 | 56 |
57 // Copies |src_rect| from source into destination. | 57 // Copies |src_rect| from source into destination. |
58 // Takes a potentially-slower path if |is_opaque| is false. | 58 // Takes a potentially-slower path if |is_opaque| is false. |
59 // Sets |transform| on source afterwards! | 59 // Sets |transform| on source afterwards! |
60 SK_API void CopyHDC(HDC source, HDC destination, int x, int y, bool is_opaque, | 60 SK_API void CopyHDC(HDC source, HDC destination, int x, int y, bool is_opaque, |
61 const RECT& src_rect, const SkMatrix& transform); | 61 const RECT& src_rect, const SkMatrix& transform); |
62 | 62 |
| 63 // Fills in a BITMAPINFOHEADER structure given the bitmap's size. |
| 64 SK_API void CreateBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr); |
| 65 |
| 66 SK_API HBITMAP CreateHBitmap(int width, int height, |
| 67 HANDLE shared_section = nullptr, |
| 68 void** data = nullptr); |
| 69 |
63 } // namespace skia | 70 } // namespace skia |
64 | 71 |
65 #endif // SKIA_EXT_SKIA_UTILS_WIN_H_ | 72 #endif // SKIA_EXT_SKIA_UTILS_WIN_H_ |
66 | 73 |
OLD | NEW |