| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 SecurityOrigin* getSecurityOrigin() const; | 133 SecurityOrigin* getSecurityOrigin() const; |
| 134 bool originClean() const; | 134 bool originClean() const; |
| 135 void setOriginTainted() { m_originClean = false; } | 135 void setOriginTainted() { m_originClean = false; } |
| 136 | 136 |
| 137 AffineTransform baseTransform() const; | 137 AffineTransform baseTransform() const; |
| 138 | 138 |
| 139 bool is3D() const; | 139 bool is3D() const; |
| 140 bool isAnimated2D() const; | 140 bool isAnimated2D() const; |
| 141 | 141 |
| 142 bool hasImageBuffer() const { return m_imageBuffer; } | 142 bool hasImageBuffer() const { return m_imageBuffer.get(); } |
| 143 void discardImageBuffer(); | 143 void discardImageBuffer(); |
| 144 | 144 |
| 145 bool shouldAccelerate(const IntSize&) const; | 145 bool shouldAccelerate(const IntSize&) const; |
| 146 | 146 |
| 147 bool shouldBeDirectComposited() const; | 147 bool shouldBeDirectComposited() const; |
| 148 | 148 |
| 149 void prepareSurfaceForPaintingIfNeeded() const; | 149 void prepareSurfaceForPaintingIfNeeded() const; |
| 150 | 150 |
| 151 const AtomicString imageSourceURL() const override; | 151 const AtomicString imageSourceURL() const override; |
| 152 | 152 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 mutable bool m_didFailToCreateImageBuffer; | 236 mutable bool m_didFailToCreateImageBuffer; |
| 237 bool m_imageBufferIsClear; | 237 bool m_imageBufferIsClear; |
| 238 OwnPtr<ImageBuffer> m_imageBuffer; | 238 OwnPtr<ImageBuffer> m_imageBuffer; |
| 239 | 239 |
| 240 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). | 240 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 } // namespace blink | 243 } // namespace blink |
| 244 | 244 |
| 245 #endif // HTMLCanvasElement_h | 245 #endif // HTMLCanvasElement_h |
| OLD | NEW |