Changeset 206056 in webkit
- Timestamp:
- Sep 16, 2016 5:14:16 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r206055 r206056 1 2016-09-16 Brent Fulgham <bfulgham@apple.com> 2 3 [Win][Direct2D] Provide Color support for Direct2D 4 https://bugs.webkit.org/show_bug.cgi?id=162090 5 6 Reviewed by Dean Jackson. 7 8 Add casting operations to the Color class to allow easy interoption with 9 native Direct2D operations. 10 11 No new tests. No change in behavior. 12 13 * PlatformWin.cmake: Add new Windows implementation file. 14 * platform/graphics/Color.h: 15 * platform/graphics/win/ColorDirect2D.cpp: Added. 16 (WebCore::Color::Color): 17 (WebCore::Color::operator D2D1_COLOR_F): 18 1 19 2016-09-16 Antti Koivisto <antti@apple.com> 2 20 -
trunk/Source/WebCore/PlatformWin.cmake
r206027 r206056 87 87 platform/graphics/opentype/OpenTypeUtilities.cpp 88 88 89 platform/graphics/win/ColorDirect2D.cpp 89 90 platform/graphics/win/DIBPixelData.cpp 90 91 platform/graphics/win/FloatPointDirect2D.cpp -
trunk/Source/WebCore/platform/graphics/Color.h
r206043 r206056 1 1 /* 2 * Copyright (C) 2003-20 06, 2010, 2015Apple Inc. All rights reserved.2 * Copyright (C) 2003-2016 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 40 40 #endif 41 41 42 #if PLATFORM(WIN) 43 struct _D3DCOLORVALUE; 44 typedef _D3DCOLORVALUE D3DCOLORVALUE; 45 typedef D3DCOLORVALUE D2D_COLOR_F; 46 typedef D2D_COLOR_F D2D1_COLOR_F; 47 #endif 48 42 49 #if PLATFORM(GTK) 43 50 typedef struct _GdkColor GdkColor; … … 175 182 #endif 176 183 184 #if PLATFORM(WIN) 185 WEBCORE_EXPORT Color(D2D1_COLOR_F); 186 WEBCORE_EXPORT operator D2D1_COLOR_F() const; 187 #endif 188 177 189 static bool parseHexColor(const String&, RGBA32&); 178 190 static bool parseHexColor(const StringView&, RGBA32&);
Note: See TracChangeset
for help on using the changeset viewer.