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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void deref() { m_canvas->deref(); } | 71 void deref() { m_canvas->deref(); } |
72 #endif | 72 #endif |
73 | 73 |
74 HTMLCanvasElement* canvas() const { return m_canvas; } | 74 HTMLCanvasElement* canvas() const { return m_canvas; } |
75 | 75 |
76 virtual ContextType getContextType() const = 0; | 76 virtual ContextType getContextType() const = 0; |
77 virtual bool isAccelerated() const { return false; } | 77 virtual bool isAccelerated() const { return false; } |
78 virtual bool hasAlpha() const { return true; } | 78 virtual bool hasAlpha() const { return true; } |
79 virtual void setIsHidden(bool) = 0; | 79 virtual void setIsHidden(bool) = 0; |
80 virtual bool isContextLost() const { return true; } | 80 virtual bool isContextLost() const { return true; } |
| 81 virtual void setCanvasGetContextResult(RenderingContext&) = 0; |
81 | 82 |
82 // Return true if the content is updated. | 83 // Return true if the content is updated. |
83 virtual bool paintRenderingResultsToCanvas(SourceDrawingBuffer) { return fal
se; } | 84 virtual bool paintRenderingResultsToCanvas(SourceDrawingBuffer) { return fal
se; } |
84 | 85 |
85 virtual WebLayer* platformLayer() const { return nullptr; } | 86 virtual WebLayer* platformLayer() const { return nullptr; } |
86 | 87 |
87 enum LostContextMode { | 88 enum LostContextMode { |
88 NotLostContext, | 89 NotLostContext, |
89 | 90 |
90 // Lost context occurred at the graphics system level. | 91 // Lost context occurred at the graphics system level. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 132 |
132 private: | 133 private: |
133 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; | 134 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; |
134 HashSet<String> m_cleanURLs; | 135 HashSet<String> m_cleanURLs; |
135 HashSet<String> m_dirtyURLs; | 136 HashSet<String> m_dirtyURLs; |
136 }; | 137 }; |
137 | 138 |
138 } // namespace blink | 139 } // namespace blink |
139 | 140 |
140 #endif | 141 #endif |
OLD | NEW |