Title: [202418] trunk/Tools
Revision
202418
Author
[email protected]
Date
2016-06-23 23:07:38 -0700 (Thu, 23 Jun 2016)

Log Message

Fix Windows build.

* DumpRenderTree/cg/PixelDumpSupportCG.cpp:
* DumpRenderTree/cg/PixelDumpSupportCG.h:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (202417 => 202418)


--- trunk/Tools/ChangeLog	2016-06-24 05:20:11 UTC (rev 202417)
+++ trunk/Tools/ChangeLog	2016-06-24 06:07:38 UTC (rev 202418)
@@ -1,3 +1,10 @@
+2016-06-23  Simon Fraser  <[email protected]>
+
+        Fix Windows build.
+
+        * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
+        * DumpRenderTree/cg/PixelDumpSupportCG.h:
+
 2016-06-23  Gyuyoung Kim  <[email protected]>
 
         [EFL] Change download path of libxslt

Modified: trunk/Tools/DumpRenderTree/cg/PixelDumpSupportCG.cpp (202417 => 202418)


--- trunk/Tools/DumpRenderTree/cg/PixelDumpSupportCG.cpp	2016-06-24 05:20:11 UTC (rev 202417)
+++ trunk/Tools/DumpRenderTree/cg/PixelDumpSupportCG.cpp	2016-06-24 06:07:38 UTC (rev 202418)
@@ -116,6 +116,7 @@
     printPNG(image.get(), checksum);
 }
 
+#if PLATFORM(COCOA)
 PassRefPtr<BitmapContext> createBitmapContext(size_t pixelsWide, size_t pixelsHigh, size_t& rowBytes, void*& buffer)
 {
     rowBytes = (4 * pixelsWide + 63) & ~63; // Use a multiple of 64 bytes to improve CG performance
@@ -138,4 +139,4 @@
 
     return BitmapContext::createByAdoptingBitmapAndContext(buffer, context);
 }
-
+#endif

Modified: trunk/Tools/DumpRenderTree/cg/PixelDumpSupportCG.h (202417 => 202418)


--- trunk/Tools/DumpRenderTree/cg/PixelDumpSupportCG.h	2016-06-24 05:20:11 UTC (rev 202417)
+++ trunk/Tools/DumpRenderTree/cg/PixelDumpSupportCG.h	2016-06-24 06:07:38 UTC (rev 202418)
@@ -79,7 +79,9 @@
 
 };
 
+#if PLATFORM(COCOA)
 PassRefPtr<BitmapContext> createBitmapContext(size_t pixelsWide, size_t pixelsHigh, size_t& rowBytes, void*& buffer);
+#endif
 PassRefPtr<BitmapContext> createBitmapContextFromWebView(bool onscreen, bool incrementalRepaint, bool sweepHorizontally, bool drawSelectionRect);
 
 #endif // PixelDumpSupportCG_h
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to