OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. |
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 String toDataURL(const String& mimeType, const double* quality = 0, Coor
dinateSystem = LogicalCoordinateSystem) const; | 113 String toDataURL(const String& mimeType, const double* quality = 0, Coor
dinateSystem = LogicalCoordinateSystem) const; |
114 AffineTransform baseTransform() const { return AffineTransform(); } | 114 AffineTransform baseTransform() const { return AffineTransform(); } |
115 void transformColorSpace(ColorSpace srcColorSpace, ColorSpace dstColorSp
ace); | 115 void transformColorSpace(ColorSpace srcColorSpace, ColorSpace dstColorSp
ace); |
116 void platformTransformColorSpace(const Vector<int>&); | 116 void platformTransformColorSpace(const Vector<int>&); |
117 PlatformLayer* platformLayer() const; | 117 PlatformLayer* platformLayer() const; |
118 | 118 |
119 // FIXME: current implementations of this method have the restriction th
at they only work | 119 // FIXME: current implementations of this method have the restriction th
at they only work |
120 // with textures that are RGB or RGBA format, and UNSIGNED_BYTE type. | 120 // with textures that are RGB or RGBA format, and UNSIGNED_BYTE type. |
121 bool copyToPlatformTexture(GraphicsContext3D&, Platform3DObject, GC3Denu
m, bool, bool); | 121 bool copyToPlatformTexture(GraphicsContext3D&, Platform3DObject, GC3Denu
m, bool, bool); |
122 | 122 |
123 void reportMemoryUsage(MemoryObjectInfo*) const; | |
124 | |
125 private: | 123 private: |
126 void clip(GraphicsContext*, const FloatRect&) const; | 124 void clip(GraphicsContext*, const FloatRect&) const; |
127 | 125 |
128 void draw(GraphicsContext*, ColorSpace, const FloatRect& destRect, const
FloatRect& srcRect = FloatRect(0, 0, -1, -1), CompositeOperator = CompositeSour
ceOver, BlendMode = BlendModeNormal, bool useLowQualityScale = false); | 126 void draw(GraphicsContext*, ColorSpace, const FloatRect& destRect, const
FloatRect& srcRect = FloatRect(0, 0, -1, -1), CompositeOperator = CompositeSour
ceOver, BlendMode = BlendModeNormal, bool useLowQualityScale = false); |
129 void drawPattern(GraphicsContext*, const FloatRect& srcRect, const Affin
eTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpac
e, CompositeOperator, const FloatRect& destRect); | 127 void drawPattern(GraphicsContext*, const FloatRect& srcRect, const Affin
eTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpac
e, CompositeOperator, const FloatRect& destRect); |
130 | 128 |
131 inline void genericConvertToLuminanceMask(); | 129 inline void genericConvertToLuminanceMask(); |
132 | 130 |
133 friend class GraphicsContext; | 131 friend class GraphicsContext; |
134 friend class GeneratedImage; | 132 friend class GeneratedImage; |
(...skipping 11 matching lines...) Expand all Loading... |
146 // so that create() knows when it should return failure. | 144 // so that create() knows when it should return failure. |
147 ImageBuffer(const IntSize&, float resolutionScale, ColorSpace, Rendering
Mode, bool& success); | 145 ImageBuffer(const IntSize&, float resolutionScale, ColorSpace, Rendering
Mode, bool& success); |
148 ImageBuffer(const IntSize&, float resolutionScale, ColorSpace, const Gra
phicsContext*, bool hasAlpha, bool& success); | 146 ImageBuffer(const IntSize&, float resolutionScale, ColorSpace, const Gra
phicsContext*, bool hasAlpha, bool& success); |
149 }; | 147 }; |
150 | 148 |
151 String ImageDataToDataURL(const ImageData&, const String& mimeType, const do
uble* quality); | 149 String ImageDataToDataURL(const ImageData&, const String& mimeType, const do
uble* quality); |
152 | 150 |
153 } // namespace WebCore | 151 } // namespace WebCore |
154 | 152 |
155 #endif // ImageBuffer_h | 153 #endif // ImageBuffer_h |
OLD | NEW |