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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 SkCanvas* existingDrawingCanvas() const; | 118 SkCanvas* existingDrawingCanvas() const; |
119 | 119 |
120 void setRenderingContext(PassOwnPtrWillBeRawPtr<CanvasRenderingContext>); | 120 void setRenderingContext(PassOwnPtrWillBeRawPtr<CanvasRenderingContext>); |
121 CanvasRenderingContext* renderingContext() const { return m_context.get(); } | 121 CanvasRenderingContext* renderingContext() const { return m_context.get(); } |
122 | 122 |
123 void ensureUnacceleratedImageBuffer(); | 123 void ensureUnacceleratedImageBuffer(); |
124 ImageBuffer* buffer() const; | 124 ImageBuffer* buffer() const; |
125 PassRefPtr<Image> copiedImage(SourceDrawingBuffer, AccelerationHint) const; | 125 PassRefPtr<Image> copiedImage(SourceDrawingBuffer, AccelerationHint) const; |
126 void clearCopiedImage(); | 126 void clearCopiedImage(); |
127 | 127 |
128 SecurityOrigin* securityOrigin() const; | 128 SecurityOrigin* getSecurityOrigin() const; |
129 bool originClean() const; | 129 bool originClean() const; |
130 void setOriginTainted() { m_originClean = false; } | 130 void setOriginTainted() { m_originClean = false; } |
131 | 131 |
132 AffineTransform baseTransform() const; | 132 AffineTransform baseTransform() const; |
133 | 133 |
134 bool is3D() const; | 134 bool is3D() const; |
135 bool isAnimated2D() const; | 135 bool isAnimated2D() const; |
136 | 136 |
137 bool hasImageBuffer() const { return m_imageBuffer; } | 137 bool hasImageBuffer() const { return m_imageBuffer; } |
138 void discardImageBuffer(); | 138 void discardImageBuffer(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 mutable bool m_didFailToCreateImageBuffer; | 230 mutable bool m_didFailToCreateImageBuffer; |
231 bool m_imageBufferIsClear; | 231 bool m_imageBufferIsClear; |
232 OwnPtr<ImageBuffer> m_imageBuffer; | 232 OwnPtr<ImageBuffer> m_imageBuffer; |
233 | 233 |
234 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). | 234 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). |
235 }; | 235 }; |
236 | 236 |
237 } // namespace blink | 237 } // namespace blink |
238 | 238 |
239 #endif // HTMLCanvasElement_h | 239 #endif // HTMLCanvasElement_h |
OLD | NEW |