Title: [206780] trunk/Source/WebCore
Revision
206780
Author
[email protected]
Date
2016-10-04 12:37:42 -0700 (Tue, 04 Oct 2016)

Log Message

Unreviewed build fix after r206773.

Exclude Direct2D definitions when building for normal CG Windows.

* platform/graphics/GraphicsContext.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (206779 => 206780)


--- trunk/Source/WebCore/ChangeLog	2016-10-04 19:34:52 UTC (rev 206779)
+++ trunk/Source/WebCore/ChangeLog	2016-10-04 19:37:42 UTC (rev 206780)
@@ -1,3 +1,11 @@
+2016-10-04  Brent Fulgham  <[email protected]>
+
+        Unreviewed build fix after r206773.
+
+        Exclude Direct2D definitions when building for normal CG Windows.
+
+        * platform/graphics/GraphicsContext.h:
+
 2016-10-04  Yusuke Suzuki  <[email protected]>
 
         [DOMJIT] Introduce DOMJIT::GetterSetter to tell JIT information

Modified: trunk/Source/WebCore/platform/graphics/GraphicsContext.h (206779 => 206780)


--- trunk/Source/WebCore/platform/graphics/GraphicsContext.h	2016-10-04 19:34:52 UTC (rev 206779)
+++ trunk/Source/WebCore/platform/graphics/GraphicsContext.h	2016-10-04 19:37:42 UTC (rev 206780)
@@ -509,7 +509,6 @@
     void drawRoundCorner(bool newClip, RECT clipRect, RECT rectWin, HDC dc, int width, int height);
 #else
     GraphicsContext(HDC, bool hasAlpha = false); // FIXME: To be removed.
-    GraphicsContext(HDC, ID2D1DCRenderTarget**, RECT, bool hasAlpha = false); // FIXME: To be removed.
 
     // When set to true, child windows should be rendered into this context
     // rather than allowing them just to render to the screen. Defaults to
@@ -546,6 +545,9 @@
     // The bitmap should be non-premultiplied.
     void drawWindowsBitmap(WindowsBitmap*, const IntPoint&);
 #endif
+#if USE(DIRECT2D)
+    GraphicsContext(HDC, ID2D1DCRenderTarget**, RECT, bool hasAlpha = false); // FIXME: To be removed.
+
     WEBCORE_EXPORT static ID2D1Factory* systemFactory();
     WEBCORE_EXPORT static ID2D1RenderTarget* defaultRenderTarget();
 
@@ -555,6 +557,7 @@
 
     ID2D1SolidColorBrush* solidStrokeBrush();
     ID2D1SolidColorBrush* solidFillBrush();
+#endif
 #else // PLATFORM(WIN)
     bool shouldIncludeChildWindows() const { return false; }
 #endif // PLATFORM(WIN)
@@ -572,11 +575,11 @@
 
 #if PLATFORM(WIN) && !USE(WINGDI)
     void platformInit(HDC, bool hasAlpha = false);
-    void platformInit(HDC, ID2D1RenderTarget**, RECT, bool hasAlpha = false);
-    void platformInit(ID2D1RenderTarget*);
 #endif
 
 #if USE(DIRECT2D)
+    void platformInit(HDC, ID2D1RenderTarget**, RECT, bool hasAlpha = false);
+    void platformInit(ID2D1RenderTarget*);
     void drawWithoutShadow(const FloatRect& boundingRect, const std::function<void(ID2D1RenderTarget*)>&);
     void drawWithShadow(const FloatRect& boundingRect, const std::function<void(ID2D1RenderTarget*)>&);
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to