| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 blink::WebLayer* platformLayer() const; | 111 blink::WebLayer* platformLayer() const; |
| 112 | 112 |
| 113 // FIXME: current implementations of this method have the restriction that t
hey only work | 113 // FIXME: current implementations of this method have the restriction that t
hey only work |
| 114 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0
, as specified in | 114 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0
, as specified in |
| 115 // Extensions3D::canUseCopyTextureCHROMIUM(). | 115 // Extensions3D::canUseCopyTextureCHROMIUM(). |
| 116 // Destroys the TEXTURE_2D binding for the active texture unit of the passed
context | 116 // Destroys the TEXTURE_2D binding for the active texture unit of the passed
context |
| 117 bool copyToPlatformTexture(blink::WebGraphicsContext3D*, Platform3DObject, G
Lenum, GLenum, GLint, bool, bool); | 117 bool copyToPlatformTexture(blink::WebGraphicsContext3D*, Platform3DObject, G
Lenum, GLenum, GLint, bool, bool); |
| 118 | 118 |
| 119 Platform3DObject getBackingTexture(); | 119 Platform3DObject getBackingTexture(); |
| 120 | 120 |
| 121 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*); | 121 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, bool fromFrontBuf
fer = false); |
| 122 | 122 |
| 123 void flush(); | 123 void flush(); |
| 124 | 124 |
| 125 void notifySurfaceInvalid(); | 125 void notifySurfaceInvalid(); |
| 126 | 126 |
| 127 private: | 127 private: |
| 128 ImageBuffer(PassOwnPtr<ImageBufferSurface>); | 128 ImageBuffer(PassOwnPtr<ImageBufferSurface>); |
| 129 | 129 |
| 130 void draw(GraphicsContext*, const FloatRect&, const FloatRect* = 0, Composit
eOperator = CompositeSourceOver); | 130 void draw(GraphicsContext*, const FloatRect&, const FloatRect* = 0, Composit
eOperator = CompositeSourceOver); |
| 131 void drawPattern(GraphicsContext*, const FloatRect&, const FloatSize&, const
FloatPoint&, CompositeOperator, const FloatRect&, blink::WebBlendMode, const In
tSize& repeatSpacing = IntSize()); | 131 void drawPattern(GraphicsContext*, const FloatRect&, const FloatSize&, const
FloatPoint&, CompositeOperator, const FloatRect&, blink::WebBlendMode, const In
tSize& repeatSpacing = IntSize()); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 149 | 149 |
| 150 IntSize m_size; | 150 IntSize m_size; |
| 151 RefPtr<Uint8ClampedArray> m_data; | 151 RefPtr<Uint8ClampedArray> m_data; |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String&
mimeType, const double* quality); | 154 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String&
mimeType, const double* quality); |
| 155 | 155 |
| 156 } // namespace WebCore | 156 } // namespace WebCore |
| 157 | 157 |
| 158 #endif // ImageBuffer_h | 158 #endif // ImageBuffer_h |
| OLD | NEW |