| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 virtual int externallyAllocatedBytesPerPixel() { | 155 virtual int externallyAllocatedBytesPerPixel() { |
| 156 NOTREACHED(); | 156 NOTREACHED(); |
| 157 return 0; | 157 return 0; |
| 158 } | 158 } |
| 159 | 159 |
| 160 // ImageBitmap-specific interface | 160 // ImageBitmap-specific interface |
| 161 virtual bool paint(GraphicsContext&, const IntRect&) { return false; } | 161 virtual bool paint(GraphicsContext&, const IntRect&) { return false; } |
| 162 | 162 |
| 163 // OffscreenCanvas-specific methods | 163 // OffscreenCanvas-specific methods |
| 164 OffscreenCanvas* getOffscreenCanvas() const { return m_offscreenCanvas; } | 164 OffscreenCanvas* getOffscreenCanvas() const { return m_offscreenCanvas; } |
| 165 virtual ImageBitmap* transferToImageBitmap(ExceptionState&) { | 165 virtual ImageBitmap* transferToImageBitmap() { return nullptr; } |
| 166 return nullptr; | |
| 167 } | |
| 168 | 166 |
| 169 bool wouldTaintOrigin(CanvasImageSource*, SecurityOrigin* = nullptr); | 167 bool wouldTaintOrigin(CanvasImageSource*, SecurityOrigin* = nullptr); |
| 170 void didMoveToNewDocument(Document*); | 168 void didMoveToNewDocument(Document*); |
| 171 | 169 |
| 172 void detachCanvas() { m_canvas = nullptr; } | 170 void detachCanvas() { m_canvas = nullptr; } |
| 173 | 171 |
| 174 const CanvasContextCreationAttributes& creationAttributes() const { | 172 const CanvasContextCreationAttributes& creationAttributes() const { |
| 175 return m_creationAttributes; | 173 return m_creationAttributes; |
| 176 } | 174 } |
| 177 | 175 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 189 Member<OffscreenCanvas> m_offscreenCanvas; | 187 Member<OffscreenCanvas> m_offscreenCanvas; |
| 190 HashSet<String> m_cleanURLs; | 188 HashSet<String> m_cleanURLs; |
| 191 HashSet<String> m_dirtyURLs; | 189 HashSet<String> m_dirtyURLs; |
| 192 CanvasColorSpace m_colorSpace; | 190 CanvasColorSpace m_colorSpace; |
| 193 CanvasContextCreationAttributes m_creationAttributes; | 191 CanvasContextCreationAttributes m_creationAttributes; |
| 194 }; | 192 }; |
| 195 | 193 |
| 196 } // namespace blink | 194 } // namespace blink |
| 197 | 195 |
| 198 #endif | 196 #endif |
| OLD | NEW |