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 | 131 |
132 SecurityOrigin* securityOrigin() const; | 132 SecurityOrigin* securityOrigin() const; |
133 bool originClean() const; | 133 bool originClean() const; |
134 void setOriginTainted() { m_originClean = false; } | 134 void setOriginTainted() { m_originClean = false; } |
135 | 135 |
136 AffineTransform baseTransform() const; | 136 AffineTransform baseTransform() const; |
137 | 137 |
138 bool is3D() const; | 138 bool is3D() const; |
139 | 139 |
140 bool hasImageBuffer() const { return m_imageBuffer; } | 140 bool hasImageBuffer() const { return m_imageBuffer; } |
141 bool hasValidImageBuffer() const; | |
142 void discardImageBuffer(); | 141 void discardImageBuffer(); |
143 | 142 |
144 bool shouldAccelerate(const IntSize&) const; | 143 bool shouldAccelerate(const IntSize&) const; |
145 | 144 |
146 virtual const AtomicString imageSourceURL() const override; | 145 virtual const AtomicString imageSourceURL() const override; |
147 | 146 |
148 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; | 147 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
149 | 148 |
150 // DocumentVisibilityObserver implementation | 149 // DocumentVisibilityObserver implementation |
151 virtual void didChangeVisibilityState(PageVisibilityState) override; | 150 virtual void didChangeVisibilityState(PageVisibilityState) override; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 bool m_imageBufferIsClear; | 212 bool m_imageBufferIsClear; |
214 OwnPtr<ImageBuffer> m_imageBuffer; | 213 OwnPtr<ImageBuffer> m_imageBuffer; |
215 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; | 214 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; |
216 | 215 |
217 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). | 216 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). |
218 }; | 217 }; |
219 | 218 |
220 } // namespace blink | 219 } // namespace blink |
221 | 220 |
222 #endif // HTMLCanvasElement_h | 221 #endif // HTMLCanvasElement_h |
OLD | NEW |