| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 void paint(GraphicsContext*, const LayoutRect&); | 113 void paint(GraphicsContext*, const LayoutRect&); |
| 114 | 114 |
| 115 GraphicsContext* drawingContext() const; | 115 GraphicsContext* drawingContext() const; |
| 116 GraphicsContext* existingDrawingContext() const; | 116 GraphicsContext* existingDrawingContext() const; |
| 117 | 117 |
| 118 CanvasRenderingContext* renderingContext() const { return m_context.get(); } | 118 CanvasRenderingContext* renderingContext() const { return m_context.get(); } |
| 119 | 119 |
| 120 void ensureUnacceleratedImageBuffer(); | 120 void ensureUnacceleratedImageBuffer(); |
| 121 ImageBuffer* buffer() const; | 121 ImageBuffer* buffer() const; |
| 122 Image* copiedImage(SourceDrawingBuffer) const; | 122 Image* copiedImage() const; |
| 123 void clearCopiedImage(); | 123 void clearCopiedImage(); |
| 124 | 124 |
| 125 SecurityOrigin* securityOrigin() const; | 125 SecurityOrigin* securityOrigin() const; |
| 126 bool originClean() const { return m_originClean; } | 126 bool originClean() const { return m_originClean; } |
| 127 void setOriginTainted() { m_originClean = false; } | 127 void setOriginTainted() { m_originClean = false; } |
| 128 | 128 |
| 129 AffineTransform baseTransform() const; | 129 AffineTransform baseTransform() const; |
| 130 | 130 |
| 131 bool is3D() const; | 131 bool is3D() const; |
| 132 | 132 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 bool m_imageBufferIsClear; | 208 bool m_imageBufferIsClear; |
| 209 OwnPtr<ImageBuffer> m_imageBuffer; | 209 OwnPtr<ImageBuffer> m_imageBuffer; |
| 210 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; | 210 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; |
| 211 | 211 |
| 212 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). | 212 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 } // namespace blink | 215 } // namespace blink |
| 216 | 216 |
| 217 #endif // HTMLCanvasElement_h | 217 #endif // HTMLCanvasElement_h |
| OLD | NEW |