OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
4 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 4 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
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 20 matching lines...) Expand all Loading... |
31 #include "AffineTransform.h" | 31 #include "AffineTransform.h" |
32 #include "Image.h" | 32 #include "Image.h" |
33 | 33 |
34 #include <wtf/PassRefPtr.h> | 34 #include <wtf/PassRefPtr.h> |
35 #include <wtf/RefCounted.h> | 35 #include <wtf/RefCounted.h> |
36 #include <wtf/RefPtr.h> | 36 #include <wtf/RefPtr.h> |
37 | 37 |
38 #if USE(CG) | 38 #if USE(CG) |
39 typedef struct CGPattern* CGPatternRef; | 39 typedef struct CGPattern* CGPatternRef; |
40 typedef CGPatternRef PlatformPatternPtr; | 40 typedef CGPatternRef PlatformPatternPtr; |
41 #elif USE(CAIRO) | |
42 #include <cairo.h> | |
43 typedef cairo_pattern_t* PlatformPatternPtr; | |
44 #elif USE(SKIA) | 41 #elif USE(SKIA) |
45 class SkShader; | 42 class SkShader; |
46 typedef SkShader* PlatformPatternPtr; | 43 typedef SkShader* PlatformPatternPtr; |
47 #elif PLATFORM(QT) | 44 #elif PLATFORM(QT) |
48 #include <QBrush> | 45 #include <QBrush> |
49 typedef QBrush PlatformPatternPtr; | 46 typedef QBrush PlatformPatternPtr; |
50 #elif PLATFORM(WX) | 47 #elif PLATFORM(WX) |
51 #if USE(WXGC) | 48 #if USE(WXGC) |
52 class wxGraphicsBrush; | 49 class wxGraphicsBrush; |
53 typedef wxGraphicsBrush* PlatformPatternPtr; | 50 typedef wxGraphicsBrush* PlatformPatternPtr; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 AffineTransform m_patternSpaceTransformation; | 97 AffineTransform m_patternSpaceTransformation; |
101 PlatformPatternPtr m_pattern; | 98 PlatformPatternPtr m_pattern; |
102 #if USE(SKIA) | 99 #if USE(SKIA) |
103 int m_externalMemoryAllocated; | 100 int m_externalMemoryAllocated; |
104 #endif | 101 #endif |
105 }; | 102 }; |
106 | 103 |
107 } //namespace | 104 } //namespace |
108 | 105 |
109 #endif | 106 #endif |
OLD | NEW |