OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
202 String toDataURLInternal(const String& mimeType, const double& quality, Sour ceDrawingBuffer) const; | 202 String toDataURLInternal(const String& mimeType, const double& quality, Sour ceDrawingBuffer) const; |
203 | 203 |
204 IntSize m_size; | 204 IntSize m_size; |
205 | 205 |
206 OwnPtrWillBeMember<CanvasRenderingContext> m_context; | 206 OwnPtrWillBeMember<CanvasRenderingContext> m_context; |
207 | 207 |
208 bool m_ignoreReset; | 208 bool m_ignoreReset; |
209 FloatRect m_dirtyRect; | 209 FloatRect m_dirtyRect; |
210 | 210 |
211 mutable intptr_t m_externallyAllocatedMemory; | 211 mutable intptr_t m_externallyAllocatedMemory; |
212 | |
Justin Novosad
2015/12/08 22:15:27
No real changes to this file, please revert.
| |
213 bool m_originClean; | 212 bool m_originClean; |
214 | 213 |
215 // It prevents HTMLCanvasElement::buffer() from continuously re-attempting t o allocate an imageBuffer | 214 // It prevents HTMLCanvasElement::buffer() from continuously re-attempting t o allocate an imageBuffer |
216 // after the first attempt failed. | 215 // after the first attempt failed. |
217 mutable bool m_didFailToCreateImageBuffer; | 216 mutable bool m_didFailToCreateImageBuffer; |
218 bool m_imageBufferIsClear; | 217 bool m_imageBufferIsClear; |
219 OwnPtr<ImageBuffer> m_imageBuffer; | 218 OwnPtr<ImageBuffer> m_imageBuffer; |
220 | 219 |
221 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue). | 220 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue). |
222 }; | 221 }; |
223 | 222 |
224 } // namespace blink | 223 } // namespace blink |
225 | 224 |
226 #endif // HTMLCanvasElement_h | 225 #endif // HTMLCanvasElement_h |
OLD | NEW |