| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 Platform3DObject getBackingTexture(); | 120 Platform3DObject getBackingTexture(); |
| 121 | 121 |
| 122 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, bool fromFrontBuf
fer = false); | 122 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, bool fromFrontBuf
fer = false); |
| 123 | 123 |
| 124 void flush(); | 124 void flush(); |
| 125 | 125 |
| 126 void notifySurfaceInvalid(); | 126 void notifySurfaceInvalid(); |
| 127 void didPresent(); | 127 void didPresent(); |
| 128 | 128 |
| 129 PassRefPtr<SkImage> newImageSnapshot() const; |
| 130 |
| 129 private: | 131 private: |
| 130 ImageBuffer(PassOwnPtr<ImageBufferSurface>); | 132 ImageBuffer(PassOwnPtr<ImageBufferSurface>); |
| 131 | 133 |
| 132 void draw(GraphicsContext*, const FloatRect&, const FloatRect* = 0, Composit
eOperator = CompositeSourceOver, WebBlendMode = WebBlendModeNormal); | 134 void draw(GraphicsContext*, const FloatRect&, const FloatRect* = 0, Composit
eOperator = CompositeSourceOver, WebBlendMode = WebBlendModeNormal); |
| 133 void drawPattern(GraphicsContext*, const FloatRect&, const FloatSize&, const
FloatPoint&, CompositeOperator, const FloatRect&, blink::WebBlendMode, const In
tSize& repeatSpacing = IntSize()); | 135 void drawPattern(GraphicsContext*, const FloatRect&, const FloatSize&, const
FloatPoint&, CompositeOperator, const FloatRect&, blink::WebBlendMode, const In
tSize& repeatSpacing = IntSize()); |
| 134 static PassRefPtr<SkColorFilter> createColorSpaceFilter(ColorSpace srcColorS
pace, ColorSpace dstColorSpace); | 136 static PassRefPtr<SkColorFilter> createColorSpaceFilter(ColorSpace srcColorS
pace, ColorSpace dstColorSpace); |
| 135 | 137 |
| 136 friend class GraphicsContext; | 138 friend class GraphicsContext; |
| 137 friend class GeneratedImage; | 139 friend class GeneratedImage; |
| 138 friend class CrossfadeGeneratedImage; | 140 friend class CrossfadeGeneratedImage; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 151 | 153 |
| 152 IntSize m_size; | 154 IntSize m_size; |
| 153 RefPtr<Uint8ClampedArray> m_data; | 155 RefPtr<Uint8ClampedArray> m_data; |
| 154 }; | 156 }; |
| 155 | 157 |
| 156 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String&
mimeType, const double* quality); | 158 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String&
mimeType, const double* quality); |
| 157 | 159 |
| 158 } // namespace blink | 160 } // namespace blink |
| 159 | 161 |
| 160 #endif // ImageBuffer_h | 162 #endif // ImageBuffer_h |
| OLD | NEW |