| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 virtual bool is3d() const { return false; } | 112 virtual bool is3d() const { return false; } |
| 113 virtual void setFilterQuality(SkFilterQuality) { ASSERT_NOT_REACHED(); } | 113 virtual void setFilterQuality(SkFilterQuality) { ASSERT_NOT_REACHED(); } |
| 114 virtual void reshape(int width, int height) { ASSERT_NOT_REACHED(); } | 114 virtual void reshape(int width, int height) { ASSERT_NOT_REACHED(); } |
| 115 virtual void markLayerComposited() { ASSERT_NOT_REACHED(); } | 115 virtual void markLayerComposited() { ASSERT_NOT_REACHED(); } |
| 116 virtual ImageData* paintRenderingResultsToImageData(SourceDrawingBuffer) { A
SSERT_NOT_REACHED(); return nullptr; } | 116 virtual ImageData* paintRenderingResultsToImageData(SourceDrawingBuffer) { A
SSERT_NOT_REACHED(); return nullptr; } |
| 117 virtual int externallyAllocatedBytesPerPixel() { ASSERT_NOT_REACHED(); retur
n 0; } | 117 virtual int externallyAllocatedBytesPerPixel() { ASSERT_NOT_REACHED(); retur
n 0; } |
| 118 | 118 |
| 119 // ImageBitmap-specific interface | 119 // ImageBitmap-specific interface |
| 120 virtual bool paint(GraphicsContext&, const IntRect&) { return false; } | 120 virtual bool paint(GraphicsContext&, const IntRect&) { return false; } |
| 121 | 121 |
| 122 bool wouldTaintOrigin(CanvasImageSource*); | 122 bool wouldTaintOrigin(CanvasImageSource*, SecurityOrigin* = nullptr); |
| 123 void didMoveToNewDocument(Document*); | 123 void didMoveToNewDocument(Document*); |
| 124 | 124 |
| 125 // OffscreenCanvas-specific methods | 125 // OffscreenCanvas-specific methods |
| 126 OffscreenCanvas* getOffscreenCanvas() const { return m_offscreenCanvas; } | 126 OffscreenCanvas* getOffscreenCanvas() const { return m_offscreenCanvas; } |
| 127 virtual ImageBitmap* transferToImageBitmap(ExceptionState&) { return nullptr
; } | 127 virtual ImageBitmap* transferToImageBitmap(ExceptionState&) { return nullptr
; } |
| 128 | 128 |
| 129 protected: | 129 protected: |
| 130 CanvasRenderingContext(HTMLCanvasElement* = nullptr, OffscreenCanvas* = null
ptr); | 130 CanvasRenderingContext(HTMLCanvasElement* = nullptr, OffscreenCanvas* = null
ptr); |
| 131 DECLARE_VIRTUAL_TRACE(); | 131 DECLARE_VIRTUAL_TRACE(); |
| 132 virtual void stop() = 0; | 132 virtual void stop() = 0; |
| 133 | 133 |
| 134 private: | 134 private: |
| 135 Member<HTMLCanvasElement> m_canvas; | 135 Member<HTMLCanvasElement> m_canvas; |
| 136 Member<OffscreenCanvas> m_offscreenCanvas; | 136 Member<OffscreenCanvas> m_offscreenCanvas; |
| 137 HashSet<String> m_cleanURLs; | 137 HashSet<String> m_cleanURLs; |
| 138 HashSet<String> m_dirtyURLs; | 138 HashSet<String> m_dirtyURLs; |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace blink | 141 } // namespace blink |
| 142 | 142 |
| 143 #endif | 143 #endif |
| OLD | NEW |