Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: Source/WTF/wtf/Platform.h

Issue 13724012: Remove Cairo support. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WTF/wtf/FeatureDefines.h ('k') | Source/WebCore/WebCorePrefix.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved.
3 * Copyright (C) 2007-2009 Torch Mobile, Inc. 3 * Copyright (C) 2007-2009 Torch Mobile, Inc.
4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. 4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 #endif 500 #endif
501 #endif 501 #endif
502 502
503 #if PLATFORM(BLACKBERRY) 503 #if PLATFORM(BLACKBERRY)
504 #define WTF_USE_SKIA 1 504 #define WTF_USE_SKIA 1
505 #define WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION 1 505 #define WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION 1
506 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_DITHERING 1 506 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_DITHERING 1
507 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING 1 507 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING 1
508 #endif 508 #endif
509 509
510 #if PLATFORM(GTK)
511 #define WTF_USE_CAIRO 1
512 #define ENABLE_GLOBAL_FASTMALLOC_NEW 0
513 #endif
514
515 /* On Windows, use QueryPerformanceCounter by default */ 510 /* On Windows, use QueryPerformanceCounter by default */
516 #if OS(WINDOWS) 511 #if OS(WINDOWS)
517 #define WTF_USE_QUERY_PERFORMANCE_COUNTER 1 512 #define WTF_USE_QUERY_PERFORMANCE_COUNTER 1
518 #endif 513 #endif
519 514
520 #if OS(WINCE) && !PLATFORM(QT) 515 #if OS(WINCE) && !PLATFORM(QT)
521 #define NOSHLWAPI /* shlwapi.h not available on WinCe */ 516 #define NOSHLWAPI /* shlwapi.h not available on WinCe */
522 517
523 /* MSDN documentation says these functions are provided with uspce.lib. But we cannot find this file. */ 518 /* MSDN documentation says these functions are provided with uspce.lib. But we cannot find this file. */
524 #define __usp10__ /* disable "usp10.h" */ 519 #define __usp10__ /* disable "usp10.h" */
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 #define WTF_USE_CFNETWORK 1 585 #define WTF_USE_CFNETWORK 1
591 #define WTF_USE_NETWORK_CFDATA_ARRAY_CALLBACK 1 586 #define WTF_USE_NETWORK_CFDATA_ARRAY_CALLBACK 1
592 #define WTF_USE_SECURITY_FRAMEWORK 0 587 #define WTF_USE_SECURITY_FRAMEWORK 0
593 #define WTF_USE_WEB_THREAD 1 588 #define WTF_USE_WEB_THREAD 1
594 #endif /* PLATFORM(IOS) */ 589 #endif /* PLATFORM(IOS) */
595 590
596 #if PLATFORM(WIN) && !OS(WINCE) 591 #if PLATFORM(WIN) && !OS(WINCE)
597 #define WTF_USE_CF 1 592 #define WTF_USE_CF 1
598 #endif 593 #endif
599 594
600 #if PLATFORM(WIN) && !OS(WINCE) && !PLATFORM(WIN_CAIRO) 595 #if PLATFORM(WIN) && !OS(WINCE)
601 #define WTF_USE_CFNETWORK 1 596 #define WTF_USE_CFNETWORK 1
602 #endif 597 #endif
603 598
604 #if USE(CFNETWORK) || PLATFORM(MAC) || PLATFORM(IOS) 599 #if USE(CFNETWORK) || PLATFORM(MAC) || PLATFORM(IOS)
605 #define WTF_USE_CFURLCACHE 1 600 #define WTF_USE_CFURLCACHE 1
606 #endif 601 #endif
607 602
608 #if PLATFORM(WX) 603 #if PLATFORM(WX)
609 #if !CPU(PPC) 604 #if !CPU(PPC)
610 #if !defined(ENABLE_ASSEMBLER) 605 #if !defined(ENABLE_ASSEMBLER)
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 /* Use the QXmlStreamReader implementation for XMLDocumentParser */ 908 /* Use the QXmlStreamReader implementation for XMLDocumentParser */
914 /* Use the QXmlQuery implementation for XSLTProcessor */ 909 /* Use the QXmlQuery implementation for XSLTProcessor */
915 #if PLATFORM(QT) 910 #if PLATFORM(QT)
916 #if !USE(LIBXML2) 911 #if !USE(LIBXML2)
917 #define WTF_USE_QXMLSTREAM 1 912 #define WTF_USE_QXMLSTREAM 1
918 #define WTF_USE_QXMLQUERY 1 913 #define WTF_USE_QXMLQUERY 1
919 #endif 914 #endif
920 #endif 915 #endif
921 916
922 /* Accelerated compositing */ 917 /* Accelerated compositing */
923 #if PLATFORM(MAC) || PLATFORM(IOS) || PLATFORM(QT) || (PLATFORM(WIN) && !OS(WINC E) && !PLATFORM(WIN_CAIRO)) 918 #if PLATFORM(MAC) || PLATFORM(IOS) || PLATFORM(QT) || (PLATFORM(WIN) && !OS(WINC E))
924 #define WTF_USE_ACCELERATED_COMPOSITING 1 919 #define WTF_USE_ACCELERATED_COMPOSITING 1
925 #endif 920 #endif
926 921
927 /* FIXME: When all platforms' compositors can compute their own filter outsets, we should remove this define. 922 /* FIXME: When all platforms' compositors can compute their own filter outsets, we should remove this define.
928 https://bugs.webkit.org/show_bug.cgi?id=112830 */ 923 https://bugs.webkit.org/show_bug.cgi?id=112830 */
929 #if USE(CG) 924 #if USE(CG)
930 #define HAVE_COMPOSITOR_FILTER_OUTSETS 1 925 #define HAVE_COMPOSITOR_FILTER_OUTSETS 1
931 #endif 926 #endif
932 927
933 #if ENABLE(WEBGL) && !defined(WTF_USE_3D_GRAPHICS) 928 #if ENABLE(WEBGL) && !defined(WTF_USE_3D_GRAPHICS)
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 #endif 1021 #endif
1027 1022
1028 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 1023 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
1029 #define HAVE_AVFOUNDATION_TEXT_TRACK_SUPPORT 1 1024 #define HAVE_AVFOUNDATION_TEXT_TRACK_SUPPORT 1
1030 #endif 1025 #endif
1031 1026
1032 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 1027 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
1033 #define HAVE_MEDIA_ACCESSIBILITY_FRAMEWORK 1 1028 #define HAVE_MEDIA_ACCESSIBILITY_FRAMEWORK 1
1034 #endif 1029 #endif
1035 1030
1036 #if PLATFORM(MAC) || PLATFORM(GTK) || (PLATFORM(WIN) && !OS(WINCE) && !PLATFORM( WIN_CAIRO)) || PLATFORM(BLACKBERRY) 1031 #if PLATFORM(MAC) || PLATFORM(GTK) || (PLATFORM(WIN) && !OS(WINCE)) || PLATFORM( BLACKBERRY)
1037 #define WTF_USE_REQUEST_ANIMATION_FRAME_TIMER 1 1032 #define WTF_USE_REQUEST_ANIMATION_FRAME_TIMER 1
1038 #endif 1033 #endif
1039 1034
1040 #if PLATFORM(MAC) || PLATFORM(BLACKBERRY) 1035 #if PLATFORM(MAC) || PLATFORM(BLACKBERRY)
1041 #define WTF_USE_REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR 1 1036 #define WTF_USE_REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR 1
1042 #endif 1037 #endif
1043 1038
1044 #if PLATFORM(MAC) && (PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070) 1039 #if PLATFORM(MAC) && (PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070)
1045 #define HAVE_INVERTED_WHEEL_EVENTS 1 1040 #define HAVE_INVERTED_WHEEL_EVENTS 1
1046 #endif 1041 #endif
(...skipping 20 matching lines...) Expand all
1067 #if defined(QT_OPENGL_ES_2) && !defined(WTF_USE_OPENGL_ES_2) 1062 #if defined(QT_OPENGL_ES_2) && !defined(WTF_USE_OPENGL_ES_2)
1068 #define WTF_USE_OPENGL_ES_2 1 1063 #define WTF_USE_OPENGL_ES_2 1
1069 #endif 1064 #endif
1070 #endif 1065 #endif
1071 1066
1072 #if !PLATFORM(IOS) && PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 1067 #if !PLATFORM(IOS) && PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
1073 #define WTF_USE_CONTENT_FILTERING 1 1068 #define WTF_USE_CONTENT_FILTERING 1
1074 #endif 1069 #endif
1075 1070
1076 #endif /* WTF_Platform_h */ 1071 #endif /* WTF_Platform_h */
OLDNEW
« no previous file with comments | « Source/WTF/wtf/FeatureDefines.h ('k') | Source/WebCore/WebCorePrefix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698