| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 static ContextType contextTypeFromId(const String& id); | 75 static ContextType contextTypeFromId(const String& id); |
| 76 static ContextType resolveContextTypeAliases(ContextType); | 76 static ContextType resolveContextTypeAliases(ContextType); |
| 77 | 77 |
| 78 HTMLCanvasElement* canvas() const { return m_canvas; } | 78 HTMLCanvasElement* canvas() const { return m_canvas; } |
| 79 | 79 |
| 80 CanvasColorSpace colorSpace() const { return m_colorSpace; }; | 80 CanvasColorSpace colorSpace() const { return m_colorSpace; }; |
| 81 WTF::String colorSpaceAsString() const; | 81 WTF::String colorSpaceAsString() const; |
| 82 sk_sp<SkColorSpace> skColorSpace() const; | 82 sk_sp<SkColorSpace> skColorSpace() const; |
| 83 | 83 |
| 84 virtual PassRefPtr<Image> getImage(SnapshotReason) const = 0; | 84 virtual PassRefPtr<Image> getImage(AccelerationHint, SnapshotReason) const =
0; |
| 85 virtual ContextType getContextType() const = 0; | 85 virtual ContextType getContextType() const = 0; |
| 86 virtual bool isAccelerated() const { return false; } | 86 virtual bool isAccelerated() const { return false; } |
| 87 virtual bool shouldAntialias() const { return false; } | 87 virtual bool shouldAntialias() const { return false; } |
| 88 virtual void setIsHidden(bool) = 0; | 88 virtual void setIsHidden(bool) = 0; |
| 89 virtual bool isContextLost() const { return true; } | 89 virtual bool isContextLost() const { return true; } |
| 90 virtual void setCanvasGetContextResult(RenderingContext&) { NOTREACHED(); }; | 90 virtual void setCanvasGetContextResult(RenderingContext&) { NOTREACHED(); }; |
| 91 virtual void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&)
{ NOTREACHED(); } | 91 virtual void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&)
{ NOTREACHED(); } |
| 92 virtual bool isPaintable() const = 0; | 92 virtual bool isPaintable() const = 0; |
| 93 | 93 |
| 94 // Return true if the content is updated. | 94 // Return true if the content is updated. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 Member<OffscreenCanvas> m_offscreenCanvas; | 161 Member<OffscreenCanvas> m_offscreenCanvas; |
| 162 HashSet<String> m_cleanURLs; | 162 HashSet<String> m_cleanURLs; |
| 163 HashSet<String> m_dirtyURLs; | 163 HashSet<String> m_dirtyURLs; |
| 164 CanvasColorSpace m_colorSpace; | 164 CanvasColorSpace m_colorSpace; |
| 165 CanvasContextCreationAttributes m_creationAttributes; | 165 CanvasContextCreationAttributes m_creationAttributes; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } // namespace blink | 168 } // namespace blink |
| 169 | 169 |
| 170 #endif | 170 #endif |
| OLD | NEW |