| 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; |
| 141 | 142 |
| 142 bool hasImageBuffer() const { return m_imageBuffer; } | 143 bool hasImageBuffer() const { return m_imageBuffer; } |
| 143 void discardImageBuffer(); | 144 void discardImageBuffer(); |
| 144 | 145 |
| 145 bool shouldAccelerate(const IntSize&) const; | 146 bool shouldAccelerate(const IntSize&) const; |
| 146 | 147 |
| 147 bool shouldBeDirectComposited() const; | 148 bool shouldBeDirectComposited() const; |
| 148 | 149 |
| 149 const AtomicString imageSourceURL() const override; | 150 const AtomicString imageSourceURL() const override; |
| 150 | 151 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 mutable bool m_didFailToCreateImageBuffer; | 226 mutable bool m_didFailToCreateImageBuffer; |
| 226 bool m_imageBufferIsClear; | 227 bool m_imageBufferIsClear; |
| 227 OwnPtr<ImageBuffer> m_imageBuffer; | 228 OwnPtr<ImageBuffer> m_imageBuffer; |
| 228 | 229 |
| 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). | 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). |
| 230 }; | 231 }; |
| 231 | 232 |
| 232 } // namespace blink | 233 } // namespace blink |
| 233 | 234 |
| 234 #endif // HTMLCanvasElement_h | 235 #endif // HTMLCanvasElement_h |
| OLD | NEW |