| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 ContextTypeCount, | 63 ContextTypeCount, |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 static ContextType contextTypeFromId(const String& id); | 66 static ContextType contextTypeFromId(const String& id); |
| 67 static ContextType resolveContextTypeAliases(ContextType); | 67 static ContextType resolveContextTypeAliases(ContextType); |
| 68 | 68 |
| 69 HTMLCanvasElement* canvas() const { return m_canvas; } | 69 HTMLCanvasElement* canvas() const { return m_canvas; } |
| 70 | 70 |
| 71 virtual ContextType getContextType() const = 0; | 71 virtual ContextType getContextType() const = 0; |
| 72 virtual bool isAccelerated() const { return false; } | 72 virtual bool isAccelerated() const { return false; } |
| 73 virtual bool shouldAntialias() const { return false; } |
| 73 virtual bool hasAlpha() const { return true; } | 74 virtual bool hasAlpha() const { return true; } |
| 74 virtual void setIsHidden(bool) = 0; | 75 virtual void setIsHidden(bool) = 0; |
| 75 virtual bool isContextLost() const { return true; } | 76 virtual bool isContextLost() const { return true; } |
| 76 virtual void setCanvasGetContextResult(RenderingContext&) { ASSERT_NOT_REACH
ED(); }; | 77 virtual void setCanvasGetContextResult(RenderingContext&) { ASSERT_NOT_REACH
ED(); }; |
| 77 virtual void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&)
{ ASSERT_NOT_REACHED(); } | 78 virtual void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&)
{ ASSERT_NOT_REACHED(); } |
| 78 | 79 |
| 79 // Return true if the content is updated. | 80 // Return true if the content is updated. |
| 80 virtual bool paintRenderingResultsToCanvas(SourceDrawingBuffer) { return fal
se; } | 81 virtual bool paintRenderingResultsToCanvas(SourceDrawingBuffer) { return fal
se; } |
| 81 | 82 |
| 82 virtual WebLayer* platformLayer() const { return nullptr; } | 83 virtual WebLayer* platformLayer() const { return nullptr; } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 private: | 135 private: |
| 135 Member<HTMLCanvasElement> m_canvas; | 136 Member<HTMLCanvasElement> m_canvas; |
| 136 Member<OffscreenCanvas> m_offscreenCanvas; | 137 Member<OffscreenCanvas> m_offscreenCanvas; |
| 137 HashSet<String> m_cleanURLs; | 138 HashSet<String> m_cleanURLs; |
| 138 HashSet<String> m_dirtyURLs; | 139 HashSet<String> m_dirtyURLs; |
| 139 }; | 140 }; |
| 140 | 141 |
| 141 } // namespace blink | 142 } // namespace blink |
| 142 | 143 |
| 143 #endif | 144 #endif |
| OLD | NEW |