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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 void deref() { m_canvas->deref(); } | 70 void deref() { m_canvas->deref(); } |
71 #endif | 71 #endif |
72 | 72 |
73 HTMLCanvasElement* canvas() const { return m_canvas; } | 73 HTMLCanvasElement* canvas() const { return m_canvas; } |
74 | 74 |
75 virtual ContextType getContextType() const = 0; | 75 virtual ContextType getContextType() const = 0; |
76 virtual bool isAccelerated() const { return false; } | 76 virtual bool isAccelerated() const { return false; } |
77 virtual bool hasAlpha() const { return true; } | 77 virtual bool hasAlpha() const { return true; } |
78 virtual void setIsHidden(bool) = 0; | 78 virtual void setIsHidden(bool) = 0; |
79 virtual bool isContextLost() const { return true; } | 79 virtual bool isContextLost() const { return true; } |
| 80 virtual void setCanvasGetContextResult(RenderingContext&) = 0; |
80 | 81 |
81 // Return true if the content is updated. | 82 // Return true if the content is updated. |
82 virtual bool paintRenderingResultsToCanvas(SourceDrawingBuffer) { return fal
se; } | 83 virtual bool paintRenderingResultsToCanvas(SourceDrawingBuffer) { return fal
se; } |
83 | 84 |
84 virtual WebLayer* platformLayer() const { return nullptr; } | 85 virtual WebLayer* platformLayer() const { return nullptr; } |
85 | 86 |
86 enum LostContextMode { | 87 enum LostContextMode { |
87 NotLostContext, | 88 NotLostContext, |
88 | 89 |
89 // Lost context occurred at the graphics system level. | 90 // Lost context occurred at the graphics system level. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |