| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 void disableDeferral() const; | 98 void disableDeferral() const; |
| 99 | 99 |
| 100 // Called at the end of a task that rendered a whole frame | 100 // Called at the end of a task that rendered a whole frame |
| 101 void finalizeFrame(const FloatRect &dirtyRect); | 101 void finalizeFrame(const FloatRect &dirtyRect); |
| 102 void didFinalizeFrame(); | 102 void didFinalizeFrame(); |
| 103 | 103 |
| 104 bool isDirty(); | 104 bool isDirty(); |
| 105 | 105 |
| 106 // FIXME: crbug.com/485243 | 106 // FIXME: crbug.com/485243 |
| 107 // Prefer writePixels() and canvas()->draw*() for writing, and newImageSnaps
hot() for reading | 107 // Prefer writePixels() and canvas()->draw*() for writing, and newImageSnaps
hot() for reading |
| 108 const SkBitmap& deprecatedBitmapForOverwrite() const; | 108 const SkBitmap deprecatedBitmapForOverwrite() const; |
| 109 | 109 |
| 110 bool writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in
t x, int y); | 110 bool writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in
t x, int y); |
| 111 | 111 |
| 112 void willOverwriteCanvas() { m_surface->willOverwriteCanvas(); } | 112 void willOverwriteCanvas() { m_surface->willOverwriteCanvas(); } |
| 113 | 113 |
| 114 bool getImageData(Multiply, const IntRect&, WTF::ArrayBufferContents&) const
; | 114 bool getImageData(Multiply, const IntRect&, WTF::ArrayBufferContents&) const
; |
| 115 | 115 |
| 116 void putByteArray(Multiply, const unsigned char* source, const IntSize& sour
ceSize, const IntRect& sourceRect, const IntPoint& destPoint); | 116 void putByteArray(Multiply, const unsigned char* source, const IntSize& sour
ceSize, const IntRect& sourceRect, const IntPoint& destPoint); |
| 117 | 117 |
| 118 AffineTransform baseTransform() const { return AffineTransform(); } | 118 AffineTransform baseTransform() const { return AffineTransform(); } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 int height() const { return m_size.height(); } | 160 int height() const { return m_size.height(); } |
| 161 int width() const { return m_size.width(); } | 161 int width() const { return m_size.width(); } |
| 162 | 162 |
| 163 const unsigned char* m_data; | 163 const unsigned char* m_data; |
| 164 const IntSize m_size; | 164 const IntSize m_size; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace blink | 167 } // namespace blink |
| 168 | 168 |
| 169 #endif // ImageBuffer_h | 169 #endif // ImageBuffer_h |
| OLD | NEW |