| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 HTMLCanvasElement* canvas() const { return m_canvas; } | 85 HTMLCanvasElement* canvas() const { return m_canvas; } |
| 86 | 86 |
| 87 CanvasColorSpace colorSpace() const { return m_colorSpace; }; | 87 CanvasColorSpace colorSpace() const { return m_colorSpace; }; |
| 88 WTF::String colorSpaceAsString() const; | 88 WTF::String colorSpaceAsString() const; |
| 89 sk_sp<SkColorSpace> skColorSpace() const; | 89 sk_sp<SkColorSpace> skColorSpace() const; |
| 90 SkColorType colorType() const; | 90 SkColorType colorType() const; |
| 91 ColorBehavior colorBehaviorForMediaDrawnToCanvas() const; | 91 ColorBehavior colorBehaviorForMediaDrawnToCanvas() const; |
| 92 | 92 |
| 93 virtual PassRefPtr<Image> getImage(AccelerationHint, | 93 virtual PassRefPtr<Image> getImage(AccelerationHint, |
| 94 SnapshotReason) const = 0; | 94 SnapshotReason) const = 0; |
| 95 virtual ImageData* toImageData(SnapshotReason reason) const { | 95 virtual ImageData* toImageData(SnapshotReason reason) { return nullptr; } |
| 96 return nullptr; | |
| 97 } | |
| 98 virtual ContextType getContextType() const = 0; | 96 virtual ContextType getContextType() const = 0; |
| 99 virtual bool isAccelerated() const { return false; } | 97 virtual bool isAccelerated() const { return false; } |
| 100 virtual bool shouldAntialias() const { return false; } | 98 virtual bool shouldAntialias() const { return false; } |
| 101 virtual void setIsHidden(bool) = 0; | 99 virtual void setIsHidden(bool) = 0; |
| 102 virtual bool isContextLost() const { return true; } | 100 virtual bool isContextLost() const { return true; } |
| 103 virtual void setCanvasGetContextResult(RenderingContext&) { NOTREACHED(); }; | 101 virtual void setCanvasGetContextResult(RenderingContext&) { NOTREACHED(); }; |
| 104 virtual void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) { | 102 virtual void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) { |
| 105 NOTREACHED(); | 103 NOTREACHED(); |
| 106 } | 104 } |
| 107 virtual bool isPaintable() const = 0; | 105 virtual bool isPaintable() const = 0; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 Member<OffscreenCanvas> m_offscreenCanvas; | 190 Member<OffscreenCanvas> m_offscreenCanvas; |
| 193 HashSet<String> m_cleanURLs; | 191 HashSet<String> m_cleanURLs; |
| 194 HashSet<String> m_dirtyURLs; | 192 HashSet<String> m_dirtyURLs; |
| 195 CanvasColorSpace m_colorSpace; | 193 CanvasColorSpace m_colorSpace; |
| 196 CanvasContextCreationAttributes m_creationAttributes; | 194 CanvasContextCreationAttributes m_creationAttributes; |
| 197 }; | 195 }; |
| 198 | 196 |
| 199 } // namespace blink | 197 } // namespace blink |
| 200 | 198 |
| 201 #endif | 199 #endif |
| OLD | NEW |