OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 3 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
4 * Copyright (C) 2012 Company 100 Inc. | 4 * Copyright (C) 2012 Company 100 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 21 matching lines...) Expand all Loading... |
32 class wxBitmap; | 32 class wxBitmap; |
33 class wxGraphicsBitmap; | 33 class wxGraphicsBitmap; |
34 #elif USE(CG) | 34 #elif USE(CG) |
35 typedef struct CGImage* CGImageRef; | 35 typedef struct CGImage* CGImageRef; |
36 #elif PLATFORM(QT) | 36 #elif PLATFORM(QT) |
37 #include "NativeImageQt.h" | 37 #include "NativeImageQt.h" |
38 #include <qglobal.h> | 38 #include <qglobal.h> |
39 QT_BEGIN_NAMESPACE | 39 QT_BEGIN_NAMESPACE |
40 class QPixmap; | 40 class QPixmap; |
41 QT_END_NAMESPACE | 41 QT_END_NAMESPACE |
42 #elif USE(CAIRO) | |
43 #include "NativeImageCairo.h" | |
44 #elif USE(SKIA) | 42 #elif USE(SKIA) |
45 #include "NativeImageSkia.h" | 43 #include "NativeImageSkia.h" |
46 namespace WebCore { | 44 namespace WebCore { |
47 class NativeImageSkia; | 45 class NativeImageSkia; |
48 } | 46 } |
49 #elif OS(WINCE) | 47 #elif OS(WINCE) |
50 #include "SharedBitmap.h" | 48 #include "SharedBitmap.h" |
51 #endif | 49 #endif |
52 | 50 |
53 namespace WTF { | 51 namespace WTF { |
54 class MemoryObjectInfo; | 52 class MemoryObjectInfo; |
55 } | 53 } |
56 | 54 |
57 namespace WebCore { | 55 namespace WebCore { |
58 | 56 |
59 #if USE(CG) | 57 #if USE(CG) |
60 typedef CGImageRef NativeImagePtr; | 58 typedef CGImageRef NativeImagePtr; |
61 #elif PLATFORM(QT) | 59 #elif PLATFORM(QT) |
62 typedef QPixmap* NativeImagePtr; | 60 typedef QPixmap* NativeImagePtr; |
63 #elif PLATFORM(OPENVG) | 61 #elif PLATFORM(OPENVG) |
64 class TiledImageOpenVG; | 62 class TiledImageOpenVG; |
65 typedef TiledImageOpenVG* NativeImagePtr; | 63 typedef TiledImageOpenVG* NativeImagePtr; |
66 #elif PLATFORM(WX) | 64 #elif PLATFORM(WX) |
67 #if USE(WXGC) | 65 #if USE(WXGC) |
68 typedef wxGraphicsBitmap* NativeImagePtr; | 66 typedef wxGraphicsBitmap* NativeImagePtr; |
69 #else | 67 #else |
70 typedef wxBitmap* NativeImagePtr; | 68 typedef wxBitmap* NativeImagePtr; |
71 #endif | 69 #endif |
72 #elif USE(CAIRO) | |
73 typedef WebCore::NativeImageCairo* NativeImagePtr; | |
74 #elif USE(SKIA) | 70 #elif USE(SKIA) |
75 typedef WebCore::NativeImageSkia* NativeImagePtr; | 71 typedef WebCore::NativeImageSkia* NativeImagePtr; |
76 void reportMemoryUsage(const NativeImageSkia*, WTF::MemoryObjectInfo*); | 72 void reportMemoryUsage(const NativeImageSkia*, WTF::MemoryObjectInfo*); |
77 #elif OS(WINCE) | 73 #elif OS(WINCE) |
78 typedef RefPtr<SharedBitmap> NativeImagePtr; | 74 typedef RefPtr<SharedBitmap> NativeImagePtr; |
79 #elif PLATFORM(BLACKBERRY) | 75 #elif PLATFORM(BLACKBERRY) |
80 typedef void* NativeImagePtr; | 76 typedef void* NativeImagePtr; |
81 #endif | 77 #endif |
82 | 78 |
83 } | 79 } |
84 | 80 |
85 #endif | 81 #endif |
OLD | NEW |