| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 bool wouldTaintOrigin(SecurityOrigin*) const override; | 154 bool wouldTaintOrigin(SecurityOrigin*) const override; |
| 155 FloatSize elementSize() const override; | 155 FloatSize elementSize() const override; |
| 156 bool isCanvasElement() const override { return true; } | 156 bool isCanvasElement() const override { return true; } |
| 157 bool isOpaque() const override; | 157 bool isOpaque() const override; |
| 158 | 158 |
| 159 // ImageBufferClient implementation | 159 // ImageBufferClient implementation |
| 160 void notifySurfaceInvalid() override; | 160 void notifySurfaceInvalid() override; |
| 161 bool isDirty() override { return !m_dirtyRect.isEmpty(); } | 161 bool isDirty() override { return !m_dirtyRect.isEmpty(); } |
| 162 void didFinalizeFrame() override; | 162 void didFinalizeFrame() override; |
| 163 void restoreCanvasMatrixClipStack(SkCanvas*) const override; | 163 void restoreCanvasMatrixClipStack(SkCanvas*) const override; |
| 164 bool hasSingleSecurityOrigin() override; |
| 164 | 165 |
| 165 void doDeferredPaintInvalidation(); | 166 void doDeferredPaintInvalidation(); |
| 166 | 167 |
| 167 // ImageBitmapSource implementation | 168 // ImageBitmapSource implementation |
| 168 IntSize bitmapSourceSize() const override; | 169 IntSize bitmapSourceSize() const override; |
| 169 ScriptPromise createImageBitmap(ScriptState*, EventTarget&, int sx, int sy,
int sw, int sh, ExceptionState&) override; | 170 ScriptPromise createImageBitmap(ScriptState*, EventTarget&, int sx, int sy,
int sw, int sh, ExceptionState&) override; |
| 170 | 171 |
| 171 DECLARE_VIRTUAL_TRACE(); | 172 DECLARE_VIRTUAL_TRACE(); |
| 172 | 173 |
| 173 void createImageBufferUsingSurfaceForTesting(PassOwnPtr<ImageBufferSurface>)
; | 174 void createImageBufferUsingSurfaceForTesting(PassOwnPtr<ImageBufferSurface>)
; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 mutable bool m_didFailToCreateImageBuffer; | 227 mutable bool m_didFailToCreateImageBuffer; |
| 227 bool m_imageBufferIsClear; | 228 bool m_imageBufferIsClear; |
| 228 OwnPtr<ImageBuffer> m_imageBuffer; | 229 OwnPtr<ImageBuffer> m_imageBuffer; |
| 229 | 230 |
| 230 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). | 231 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). |
| 231 }; | 232 }; |
| 232 | 233 |
| 233 } // namespace blink | 234 } // namespace blink |
| 234 | 235 |
| 235 #endif // HTMLCanvasElement_h | 236 #endif // HTMLCanvasElement_h |
| OLD | NEW |