Changeset 206056 in webkit


Ignore:
Timestamp:
Sep 16, 2016 5:14:16 PM (8 years ago)
Author:
Brent Fulgham
Message:

[Win][Direct2D] Provide Color support for Direct2D
https://bugs.webkit.org/show_bug.cgi?id=162090

Reviewed by Dean Jackson.

Add casting operations to the Color class to allow easy interoption with
native Direct2D operations.

No new tests. No change in behavior.

  • PlatformWin.cmake: Add new Windows implementation file.
  • platform/graphics/Color.h:
  • platform/graphics/win/ColorDirect2D.cpp: Added.

(WebCore::Color::Color):
(WebCore::Color::operator D2D1_COLOR_F):

Location:
trunk/Source/WebCore
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r206055 r206056  
     12016-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
    1192016-09-16  Antti Koivisto  <antti@apple.com>
    220
  • trunk/Source/WebCore/PlatformWin.cmake

    r206027 r206056  
    8787    platform/graphics/opentype/OpenTypeUtilities.cpp
    8888
     89    platform/graphics/win/ColorDirect2D.cpp
    8990    platform/graphics/win/DIBPixelData.cpp
    9091    platform/graphics/win/FloatPointDirect2D.cpp
  • trunk/Source/WebCore/platform/graphics/Color.h

    r206043 r206056  
    11/*
    2  * Copyright (C) 2003-2006, 2010, 2015 Apple Inc. All rights reserved.
     2 * Copyright (C) 2003-2016 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    4040#endif
    4141
     42#if PLATFORM(WIN)
     43struct _D3DCOLORVALUE;
     44typedef _D3DCOLORVALUE D3DCOLORVALUE;
     45typedef D3DCOLORVALUE D2D_COLOR_F;
     46typedef D2D_COLOR_F D2D1_COLOR_F;
     47#endif
     48
    4249#if PLATFORM(GTK)
    4350typedef struct _GdkColor GdkColor;
     
    175182#endif
    176183
     184#if PLATFORM(WIN)
     185    WEBCORE_EXPORT Color(D2D1_COLOR_F);
     186    WEBCORE_EXPORT operator D2D1_COLOR_F() const;
     187#endif
     188
    177189    static bool parseHexColor(const String&, RGBA32&);
    178190    static bool parseHexColor(const StringView&, RGBA32&);
Note: See TracChangeset for help on using the changeset viewer.