| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // Canvas2D-specific interface | 100 // Canvas2D-specific interface |
| 101 virtual bool is2d() const { return false; } | 101 virtual bool is2d() const { return false; } |
| 102 virtual void restoreCanvasMatrixClipStack(SkCanvas*) const { } | 102 virtual void restoreCanvasMatrixClipStack(SkCanvas*) const { } |
| 103 virtual void reset() { } | 103 virtual void reset() { } |
| 104 virtual void clearRect(double x, double y, double width, double height) { } | 104 virtual void clearRect(double x, double y, double width, double height) { } |
| 105 virtual void didSetSurfaceSize() { } | 105 virtual void didSetSurfaceSize() { } |
| 106 virtual void setShouldAntialias(bool) { } | 106 virtual void setShouldAntialias(bool) { } |
| 107 virtual unsigned hitRegionsCount() const { return 0; } | 107 virtual unsigned hitRegionsCount() const { return 0; } |
| 108 virtual void setFont(const String&) { } | 108 virtual void setFont(const String&) { } |
| 109 virtual void styleDidChange(const ComputedStyle* oldStyle, const ComputedSty
le& newStyle) { } | 109 virtual void styleDidChange(const ComputedStyle* oldStyle, const ComputedSty
le& newStyle) { } |
| 110 virtual std::pair<Element*, String> getControlAndIdIfHitRegionExists(const L
ayoutPoint& location) { ASSERT_NOT_REACHED(); return std::make_pair(nullptr, Str
ing()); } |
| 110 | 111 |
| 111 // WebGL-specific interface | 112 // WebGL-specific interface |
| 112 virtual bool is3d() const { return false; } | 113 virtual bool is3d() const { return false; } |
| 113 virtual void setFilterQuality(SkFilterQuality) { ASSERT_NOT_REACHED(); } | 114 virtual void setFilterQuality(SkFilterQuality) { ASSERT_NOT_REACHED(); } |
| 114 virtual void reshape(int width, int height) { ASSERT_NOT_REACHED(); } | 115 virtual void reshape(int width, int height) { ASSERT_NOT_REACHED(); } |
| 115 virtual void markLayerComposited() { ASSERT_NOT_REACHED(); } | 116 virtual void markLayerComposited() { ASSERT_NOT_REACHED(); } |
| 116 virtual ImageData* paintRenderingResultsToImageData(SourceDrawingBuffer) { A
SSERT_NOT_REACHED(); return nullptr; } | 117 virtual ImageData* paintRenderingResultsToImageData(SourceDrawingBuffer) { A
SSERT_NOT_REACHED(); return nullptr; } |
| 117 virtual int externallyAllocatedBytesPerPixel() { ASSERT_NOT_REACHED(); retur
n 0; } | 118 virtual int externallyAllocatedBytesPerPixel() { ASSERT_NOT_REACHED(); retur
n 0; } |
| 118 | 119 |
| 119 // ImageBitmap-specific interface | 120 // ImageBitmap-specific interface |
| 120 virtual bool paint(GraphicsContext&, const IntRect&) { return false; } | 121 virtual bool paint(GraphicsContext&, const IntRect&) { return false; } |
| 121 | 122 |
| 122 bool wouldTaintOrigin(CanvasImageSource*); | 123 bool wouldTaintOrigin(CanvasImageSource*); |
| 123 void didMoveToNewDocument(Document*); | 124 void didMoveToNewDocument(Document*); |
| 124 | 125 |
| 125 protected: | 126 protected: |
| 126 CanvasRenderingContext(HTMLCanvasElement*); | 127 CanvasRenderingContext(HTMLCanvasElement*); |
| 127 DECLARE_VIRTUAL_TRACE(); | 128 DECLARE_VIRTUAL_TRACE(); |
| 128 virtual void stop() = 0; | 129 virtual void stop() = 0; |
| 129 | 130 |
| 130 private: | 131 private: |
| 131 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; | 132 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; |
| 132 HashSet<String> m_cleanURLs; | 133 HashSet<String> m_cleanURLs; |
| 133 HashSet<String> m_dirtyURLs; | 134 HashSet<String> m_dirtyURLs; |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 } // namespace blink | 137 } // namespace blink |
| 137 | 138 |
| 138 #endif | 139 #endif |
| OLD | NEW |