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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 HTMLCanvasElement* canvas() const { return m_canvas; } | 53 HTMLCanvasElement* canvas() const { return m_canvas; } |
54 | 54 |
55 virtual bool is2d() const { return false; } | 55 virtual bool is2d() const { return false; } |
56 virtual bool is3d() const { return false; } | 56 virtual bool is3d() const { return false; } |
57 virtual bool isAccelerated() const { return false; } | 57 virtual bool isAccelerated() const { return false; } |
58 virtual bool hasAlpha() const { return true; } | 58 virtual bool hasAlpha() const { return true; } |
59 virtual void setIsHidden(bool) = 0; | 59 virtual void setIsHidden(bool) = 0; |
60 | 60 |
61 virtual void paintRenderingResultsToCanvas() {} | 61 virtual void paintRenderingResultsToCanvas() {} |
62 | 62 |
63 virtual blink::WebLayer* platformLayer() const { return 0; } | 63 virtual blink::WebLayer* platformLayer() const { return nullptr; } |
64 | 64 |
65 virtual void trace(Visitor* visitor) { visitor->trace(m_canvas); } | 65 virtual void trace(Visitor* visitor) { visitor->trace(m_canvas); } |
66 | 66 |
67 bool wouldTaintOrigin(CanvasImageSource*); | 67 bool wouldTaintOrigin(CanvasImageSource*); |
68 | 68 |
69 protected: | 69 protected: |
70 CanvasRenderingContext(HTMLCanvasElement*); | 70 CanvasRenderingContext(HTMLCanvasElement*); |
71 | 71 |
72 private: | 72 private: |
73 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; | 73 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; |
74 HashSet<String> m_cleanURLs; | 74 HashSet<String> m_cleanURLs; |
75 HashSet<String> m_dirtyURLs; | 75 HashSet<String> m_dirtyURLs; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace blink | 78 } // namespace blink |
79 | 79 |
80 #endif | 80 #endif |
OLD | NEW |