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

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

Issue 1492353002: Consolidate Windows bitmap and DC code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-printing-dc-from-device
Patch Set: fix bad merge Created 4 years, 5 months 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/bitmap_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 #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
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
OLDNEW
« no previous file with comments | « skia/ext/bitmap_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