| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 61 virtual void setIsHidden(bool) = 0; |
| 62 | 62 |
| 63 virtual void paintRenderingResultsToCanvas() {} | 63 virtual void paintRenderingResultsToCanvas() {} |
| 64 | 64 |
| 65 virtual blink::WebLayer* platformLayer() const { return 0; } | 65 virtual blink::WebLayer* platformLayer() const { return 0; } |
| 66 | 66 |
| 67 virtual void trace(Visitor* visitor) { visitor->trace(m_canvas); } | |
| 68 | |
| 69 protected: | 67 protected: |
| 70 CanvasRenderingContext(HTMLCanvasElement*); | 68 CanvasRenderingContext(HTMLCanvasElement*); |
| 71 | 69 |
| 72 private: | 70 private: |
| 73 RawPtr<HTMLCanvasElement> m_canvas; | 71 RawPtr<HTMLCanvasElement> m_canvas; |
| 74 HashSet<String> m_cleanURLs; | 72 HashSet<String> m_cleanURLs; |
| 75 HashSet<String> m_dirtyURLs; | 73 HashSet<String> m_dirtyURLs; |
| 76 }; | 74 }; |
| 77 | 75 |
| 78 } // namespace blink | 76 } // namespace blink |
| 79 | 77 |
| 80 #endif | 78 #endif |
| OLD | NEW |