| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 void putByteArray(Multiply, const unsigned char* source, const IntSize& sour
ceSize, const IntRect& sourceRect, const IntPoint& destPoint); | 118 void putByteArray(Multiply, const unsigned char* source, const IntSize& sour
ceSize, const IntRect& sourceRect, const IntPoint& destPoint); |
| 119 | 119 |
| 120 AffineTransform baseTransform() const { return AffineTransform(); } | 120 AffineTransform baseTransform() const { return AffineTransform(); } |
| 121 WebLayer* platformLayer() const; | 121 WebLayer* platformLayer() const; |
| 122 | 122 |
| 123 // FIXME: current implementations of this method have the restriction that t
hey only work | 123 // FIXME: current implementations of this method have the restriction that t
hey only work |
| 124 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0
, as specified in | 124 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0
, as specified in |
| 125 // Extensions3D::canUseCopyTextureCHROMIUM(). | 125 // Extensions3D::canUseCopyTextureCHROMIUM(). |
| 126 // Destroys the TEXTURE_2D binding for the active texture unit of the passed
context | 126 // Destroys the TEXTURE_2D binding for the active texture unit of the passed
context |
| 127 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, Platform3DObject, GL
enum, GLenum, GLint, bool, bool); | 127 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, GLuint texture, GLen
um internalFormat, GLenum destType, GLint level, bool premultiplyAlpha, bool fli
pY); |
| 128 | 128 |
| 129 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff
er); | 129 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff
er); |
| 130 | 130 |
| 131 void flush(FlushReason); // process deferred draw commands immediately | 131 void flush(FlushReason); // process deferred draw commands immediately |
| 132 void flushGpu(FlushReason); // Like flush(), but flushes all the way down to
the Gpu context if the surface is accelerated | 132 void flushGpu(FlushReason); // Like flush(), but flushes all the way down to
the Gpu context if the surface is accelerated |
| 133 | 133 |
| 134 void notifySurfaceInvalid(); | 134 void notifySurfaceInvalid(); |
| 135 | 135 |
| 136 PassRefPtr<SkImage> newSkImageSnapshot(AccelerationHint, SnapshotReason) con
st; | 136 PassRefPtr<SkImage> newSkImageSnapshot(AccelerationHint, SnapshotReason) con
st; |
| 137 PassRefPtr<Image> newImageSnapshot(AccelerationHint = PreferNoAcceleration,
SnapshotReason = SnapshotReasonUnknown) const; | 137 PassRefPtr<Image> newImageSnapshot(AccelerationHint = PreferNoAcceleration,
SnapshotReason = SnapshotReasonUnknown) const; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 int height() const { return m_size.height(); } | 171 int height() const { return m_size.height(); } |
| 172 int width() const { return m_size.width(); } | 172 int width() const { return m_size.width(); } |
| 173 | 173 |
| 174 const unsigned char* m_data; | 174 const unsigned char* m_data; |
| 175 const IntSize m_size; | 175 const IntSize m_size; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace blink | 178 } // namespace blink |
| 179 | 179 |
| 180 #endif // ImageBuffer_h | 180 #endif // ImageBuffer_h |
| OLD | NEW |