| 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 27 matching lines...) Expand all Loading... |
| 38 #include "platform/transforms/AffineTransform.h" | 38 #include "platform/transforms/AffineTransform.h" |
| 39 #include "third_party/skia/include/core/SkPaint.h" | 39 #include "third_party/skia/include/core/SkPaint.h" |
| 40 #include "wtf/Forward.h" | 40 #include "wtf/Forward.h" |
| 41 #include "wtf/OwnPtr.h" | 41 #include "wtf/OwnPtr.h" |
| 42 #include "wtf/PassOwnPtr.h" | 42 #include "wtf/PassOwnPtr.h" |
| 43 #include "wtf/PassRefPtr.h" | 43 #include "wtf/PassRefPtr.h" |
| 44 #include "wtf/Uint8ClampedArray.h" | 44 #include "wtf/Uint8ClampedArray.h" |
| 45 #include "wtf/Vector.h" | 45 #include "wtf/Vector.h" |
| 46 #include "wtf/text/WTFString.h" | 46 #include "wtf/text/WTFString.h" |
| 47 | 47 |
| 48 namespace gpu { |
| 49 namespace gles2 { |
| 50 class GLES2Interface; |
| 51 } |
| 52 } |
| 53 |
| 48 namespace WTF { | 54 namespace WTF { |
| 49 | 55 |
| 50 class ArrayBufferContents; | 56 class ArrayBufferContents; |
| 51 | 57 |
| 52 } // namespace WTF | 58 } // namespace WTF |
| 53 | 59 |
| 54 namespace blink { | 60 namespace blink { |
| 55 | 61 |
| 56 class DrawingBuffer; | 62 class DrawingBuffer; |
| 57 class GraphicsContext; | 63 class GraphicsContext; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 117 |
| 112 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); |
| 113 | 119 |
| 114 AffineTransform baseTransform() const { return AffineTransform(); } | 120 AffineTransform baseTransform() const { return AffineTransform(); } |
| 115 WebLayer* platformLayer() const; | 121 WebLayer* platformLayer() const; |
| 116 | 122 |
| 117 // 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 |
| 118 // 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 |
| 119 // Extensions3D::canUseCopyTextureCHROMIUM(). | 125 // Extensions3D::canUseCopyTextureCHROMIUM(). |
| 120 // 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 |
| 121 bool copyToPlatformTexture(WebGraphicsContext3D*, Platform3DObject, GLenum,
GLenum, GLint, bool, bool); | 127 bool copyToPlatformTexture(WebGraphicsContext3D*, gpu::gles2::GLES2Interface
*, Platform3DObject, GLenum, GLenum, GLint, bool, bool); |
| 122 | 128 |
| 123 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff
er); | 129 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff
er); |
| 124 | 130 |
| 125 void flush(FlushReason); // process deferred draw commands immediately | 131 void flush(FlushReason); // process deferred draw commands immediately |
| 126 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 |
| 127 | 133 |
| 128 void notifySurfaceInvalid(); | 134 void notifySurfaceInvalid(); |
| 129 | 135 |
| 130 PassRefPtr<SkImage> newSkImageSnapshot(AccelerationHint, SnapshotReason) con
st; | 136 PassRefPtr<SkImage> newSkImageSnapshot(AccelerationHint, SnapshotReason) con
st; |
| 131 PassRefPtr<Image> newImageSnapshot(AccelerationHint = PreferNoAcceleration,
SnapshotReason = SnapshotReasonUnknown) const; | 137 PassRefPtr<Image> newImageSnapshot(AccelerationHint = PreferNoAcceleration,
SnapshotReason = SnapshotReasonUnknown) const; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 162 int height() const { return m_size.height(); } | 168 int height() const { return m_size.height(); } |
| 163 int width() const { return m_size.width(); } | 169 int width() const { return m_size.width(); } |
| 164 | 170 |
| 165 const unsigned char* m_data; | 171 const unsigned char* m_data; |
| 166 const IntSize m_size; | 172 const IntSize m_size; |
| 167 }; | 173 }; |
| 168 | 174 |
| 169 } // namespace blink | 175 } // namespace blink |
| 170 | 176 |
| 171 #endif // ImageBuffer_h | 177 #endif // ImageBuffer_h |
| OLD | NEW |