| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; | 148 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 149 | 149 |
| 150 // DocumentVisibilityObserver implementation | 150 // DocumentVisibilityObserver implementation |
| 151 virtual void didChangeVisibilityState(PageVisibilityState) override; | 151 virtual void didChangeVisibilityState(PageVisibilityState) override; |
| 152 | 152 |
| 153 // CanvasImageSource implementation | 153 // CanvasImageSource implementation |
| 154 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma
geStatus*) const override; | 154 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma
geStatus*) const override; |
| 155 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; | 155 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; |
| 156 virtual FloatSize sourceSize() const override; | 156 virtual FloatSize sourceSize() const override; |
| 157 virtual bool isCanvasElement() const override { return true; } | 157 virtual bool isCanvasElement() const override { return true; } |
| 158 virtual bool isOpaque() const override; |
| 158 | 159 |
| 159 // ImageBufferClient implementation | 160 // ImageBufferClient implementation |
| 160 virtual void notifySurfaceInvalid() override; | 161 virtual void notifySurfaceInvalid() override; |
| 161 virtual bool isDirty() override { return !m_dirtyRect.isEmpty(); } | 162 virtual bool isDirty() override { return !m_dirtyRect.isEmpty(); } |
| 162 virtual void didFinalizeFrame() override; | 163 virtual void didFinalizeFrame() override; |
| 163 virtual void restoreCanvasMatrixClipStack() override; | 164 virtual void restoreCanvasMatrixClipStack() override; |
| 164 | 165 |
| 165 void doDeferredPaintInvalidation(); | 166 void doDeferredPaintInvalidation(); |
| 166 | 167 |
| 167 virtual void trace(Visitor*) override; | 168 virtual void trace(Visitor*) override; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 bool m_imageBufferIsClear; | 214 bool m_imageBufferIsClear; |
| 214 OwnPtr<ImageBuffer> m_imageBuffer; | 215 OwnPtr<ImageBuffer> m_imageBuffer; |
| 215 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; | 216 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; |
| 216 | 217 |
| 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). | 218 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 }; | 219 }; |
| 219 | 220 |
| 220 } // namespace blink | 221 } // namespace blink |
| 221 | 222 |
| 222 #endif // HTMLCanvasElement_h | 223 #endif // HTMLCanvasElement_h |
| OLD | NEW |