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

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

Issue 6682011: Build skia as a dll in windows multi-dll build. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix lint error. Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « skia/ext/platform_device_win.h ('k') | skia/ext/vector_canvas.h » ('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 #pragma once 7 #pragma once
8 8
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 10
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 // Converts a Skia rect to a Windows RECT. 34 // Converts a Skia rect to a Windows RECT.
35 // Both use same in-memory format. Verified by COMPILE_ASSERT() in 35 // Both use same in-memory format. Verified by COMPILE_ASSERT() in
36 // skia_utils.cc. 36 // skia_utils.cc.
37 inline const RECT& SkIRectToRECT(const SkIRect& rect) { 37 inline const RECT& SkIRectToRECT(const SkIRect& rect) {
38 return reinterpret_cast<const RECT&>(rect); 38 return reinterpret_cast<const RECT&>(rect);
39 } 39 }
40 40
41 // Converts COLORREFs (0BGR) to the ARGB layout Skia expects. 41 // Converts COLORREFs (0BGR) to the ARGB layout Skia expects.
42 SkColor COLORREFToSkColor(COLORREF color); 42 SK_API SkColor COLORREFToSkColor(COLORREF color);
43 43
44 // Converts ARGB to COLORREFs (0BGR). 44 // Converts ARGB to COLORREFs (0BGR).
45 COLORREF SkColorToCOLORREF(SkColor color); 45 SK_API COLORREF SkColorToCOLORREF(SkColor color);
46 46
47 } // namespace skia 47 } // namespace skia
48 48
49 #endif // SKIA_EXT_SKIA_UTILS_WIN_H_ 49 #endif // SKIA_EXT_SKIA_UTILS_WIN_H_
50 50
OLDNEW
« no previous file with comments | « skia/ext/platform_device_win.h ('k') | skia/ext/vector_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698