| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } | 108 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } |
| 109 | 109 |
| 110 // Called by subclasses of ImageBufferSurface to install a new canvas object. | 110 // Called by subclasses of ImageBufferSurface to install a new canvas object. |
| 111 // Virtual for mocking | 111 // Virtual for mocking |
| 112 virtual void resetCanvas(SkCanvas*) const; | 112 virtual void resetCanvas(SkCanvas*) const; |
| 113 | 113 |
| 114 SkCanvas* canvas() const; | 114 SkCanvas* canvas() const; |
| 115 void disableDeferral(DisableDeferralReason) const; | 115 void disableDeferral(DisableDeferralReason) const; |
| 116 | 116 |
| 117 // Called at the end of a task that rendered a whole frame | 117 // Called at the end of a task that rendered a whole frame |
| 118 void finalizeFrame(const FloatRect& dirtyRect); | 118 void finalizeFrame(); |
| 119 void didFinalizeFrame(); | 119 void doPaintInvalidation(const FloatRect& dirtyRect); |
| 120 | |
| 121 bool isDirty(); | |
| 122 | 120 |
| 123 bool writePixels(const SkImageInfo&, | 121 bool writePixels(const SkImageInfo&, |
| 124 const void* pixels, | 122 const void* pixels, |
| 125 size_t rowBytes, | 123 size_t rowBytes, |
| 126 int x, | 124 int x, |
| 127 int y); | 125 int y); |
| 128 | 126 |
| 129 void willOverwriteCanvas() { m_surface->willOverwriteCanvas(); } | 127 void willOverwriteCanvas() { m_surface->willOverwriteCanvas(); } |
| 130 | 128 |
| 131 bool getImageData(Multiply, const IntRect&, WTF::ArrayBufferContents&) const; | 129 bool getImageData(Multiply, const IntRect&, WTF::ArrayBufferContents&) const; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 int height() const { return m_size.height(); } | 215 int height() const { return m_size.height(); } |
| 218 int width() const { return m_size.width(); } | 216 int width() const { return m_size.width(); } |
| 219 | 217 |
| 220 const unsigned char* m_data; | 218 const unsigned char* m_data; |
| 221 const IntSize m_size; | 219 const IntSize m_size; |
| 222 }; | 220 }; |
| 223 | 221 |
| 224 } // namespace blink | 222 } // namespace blink |
| 225 | 223 |
| 226 #endif // ImageBuffer_h | 224 #endif // ImageBuffer_h |
| OLD | NEW |