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