| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 PassRefPtr<Image> copiedImage(SourceDrawingBuffer) const; | 131 PassRefPtr<Image> copiedImage(SourceDrawingBuffer) const; |
| 132 void clearCopiedImage(); | 132 void clearCopiedImage(); |
| 133 | 133 |
| 134 SecurityOrigin* securityOrigin() const; | 134 SecurityOrigin* securityOrigin() const; |
| 135 bool originClean() const; | 135 bool originClean() const; |
| 136 void setOriginTainted() { m_originClean = false; } | 136 void setOriginTainted() { m_originClean = false; } |
| 137 | 137 |
| 138 AffineTransform baseTransform() const; | 138 AffineTransform baseTransform() const; |
| 139 | 139 |
| 140 bool is3D() const; | 140 bool is3D() const; |
| 141 bool isAnimated2D() const; | |
| 142 | 141 |
| 143 bool hasImageBuffer() const { return m_imageBuffer; } | 142 bool hasImageBuffer() const { return m_imageBuffer; } |
| 144 void discardImageBuffer(); | 143 void discardImageBuffer(); |
| 145 | 144 |
| 146 bool shouldAccelerate(const IntSize&) const; | 145 bool shouldAccelerate(const IntSize&) const; |
| 147 | 146 |
| 148 bool shouldBeDirectComposited() const; | 147 bool shouldBeDirectComposited() const; |
| 149 | 148 |
| 150 const AtomicString imageSourceURL() const override; | 149 const AtomicString imageSourceURL() const override; |
| 151 | 150 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 mutable bool m_didFailToCreateImageBuffer; | 225 mutable bool m_didFailToCreateImageBuffer; |
| 227 bool m_imageBufferIsClear; | 226 bool m_imageBufferIsClear; |
| 228 OwnPtr<ImageBuffer> m_imageBuffer; | 227 OwnPtr<ImageBuffer> m_imageBuffer; |
| 229 | 228 |
| 230 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). | 229 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). |
| 231 }; | 230 }; |
| 232 | 231 |
| 233 } // namespace blink | 232 } // namespace blink |
| 234 | 233 |
| 235 #endif // HTMLCanvasElement_h | 234 #endif // HTMLCanvasElement_h |
| OLD | NEW |