summaryrefslogtreecommitdiffstats
path: root/Tools/DumpRenderTree/win/PixelDumpSupportWin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/DumpRenderTree/win/PixelDumpSupportWin.cpp')
-rw-r--r--Tools/DumpRenderTree/win/PixelDumpSupportWin.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/DumpRenderTree/win/PixelDumpSupportWin.cpp b/Tools/DumpRenderTree/win/PixelDumpSupportWin.cpp
index 752cc39..f7a95d3 100644
--- a/Tools/DumpRenderTree/win/PixelDumpSupportWin.cpp
+++ b/Tools/DumpRenderTree/win/PixelDumpSupportWin.cpp
@@ -28,15 +28,15 @@
#include "config.h"
-#if PLATFORM(CG)
+#if USE(CG)
#include "PixelDumpSupportCG.h"
-#elif PLATFORM(CAIRO)
+#elif USE(CAIRO)
#include "PixelDumpSupportCairo.h"
#endif
#include "DumpRenderTree.h"
-#if PLATFORM(CG)
+#if USE(CG)
// Note: Must be included *after* DumpRenderTree.h to avoid compile error.
#include <CoreGraphics/CGBitmapContext.h>
#endif
@@ -70,11 +70,11 @@ PassRefPtr<BitmapContext> createBitmapContextFromWebView(bool onscreen, bool inc
GetObject(bitmap, sizeof(info), &info);
ASSERT(info.bmBitsPixel == 32);
-#if PLATFORM(CG)
+#if USE(CG)
RetainPtr<CGColorSpaceRef> colorSpace(AdoptCF, CGColorSpaceCreateDeviceRGB());
CGContextRef context = CGBitmapContextCreate(info.bmBits, info.bmWidth, info.bmHeight, 8,
info.bmWidthBytes, colorSpace.get(), kCGBitmapByteOrder32Host | kCGImageAlphaPremultipliedFirst);
-#elif PLATFORM(CAIRO)
+#elif USE(CAIRO)
cairo_surface_t* image = cairo_image_surface_create_for_data((unsigned char*)info.bmBits, CAIRO_FORMAT_ARGB32,
info.bmWidth, info.bmHeight, info.bmWidthBytes);
cairo_t* context = cairo_create(image);