| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 | 293 |
| 294 Member<CanvasRenderingContext> m_context; | 294 Member<CanvasRenderingContext> m_context; |
| 295 | 295 |
| 296 bool m_ignoreReset; | 296 bool m_ignoreReset; |
| 297 FloatRect m_dirtyRect; | 297 FloatRect m_dirtyRect; |
| 298 | 298 |
| 299 mutable intptr_t m_externallyAllocatedMemory; | 299 mutable intptr_t m_externallyAllocatedMemory; |
| 300 | 300 |
| 301 bool m_originClean; | 301 bool m_originClean; |
| 302 | 302 |
| 303 // It prevents HTMLCanvasElement::buffer() from continuously re-attempting to
allocate an imageBuffer | 303 // It prevents HTMLCanvasElement::buffer() from continuously re-attempting to |
| 304 // after the first attempt failed. | 304 // allocate an imageBuffer after the first attempt failed. |
| 305 mutable bool m_didFailToCreateImageBuffer; | 305 mutable bool m_didFailToCreateImageBuffer; |
| 306 bool m_imageBufferIsClear; | 306 bool m_imageBufferIsClear; |
| 307 std::unique_ptr<ImageBuffer> m_imageBuffer; | 307 std::unique_ptr<ImageBuffer> m_imageBuffer; |
| 308 | 308 |
| 309 mutable RefPtr<Image> | 309 // FIXME: This is temporary for platforms that have to copy the image buffer |
| 310 m_copiedImage; // FIXME: This is temporary for platforms that have to cop
y the image buffer to render (and for CSSCanvasValue). | 310 // to render (and for CSSCanvasValue). |
| 311 mutable RefPtr<Image> m_copiedImage; |
| 311 | 312 |
| 312 // Used for OffscreenCanvas that controls this HTML canvas element | 313 // Used for OffscreenCanvas that controls this HTML canvas element |
| 313 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; | 314 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; |
| 314 | 315 |
| 315 int m_numFramesSinceLastRenderingModeSwitch; | 316 int m_numFramesSinceLastRenderingModeSwitch; |
| 316 bool m_pendingRenderingModeSwitch; | 317 bool m_pendingRenderingModeSwitch; |
| 317 }; | 318 }; |
| 318 | 319 |
| 319 } // namespace blink | 320 } // namespace blink |
| 320 | 321 |
| 321 #endif // HTMLCanvasElement_h | 322 #endif // HTMLCanvasElement_h |
| OLD | NEW |