| 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 #endif | 51 #endif |
| 52 | 52 |
| 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 enum SourceBuffer { Front, Back }; | 61 virtual void paintRenderingResultsToCanvas(SourceDrawingBuffer) { } |
| 62 virtual void paintRenderingResultsToCanvas(SourceBuffer) { } | |
| 63 | 62 |
| 64 virtual blink::WebLayer* platformLayer() const { return nullptr; } | 63 virtual blink::WebLayer* platformLayer() const { return nullptr; } |
| 65 | 64 |
| 66 virtual void trace(Visitor* visitor) { visitor->trace(m_canvas); } | 65 virtual void trace(Visitor* visitor) { visitor->trace(m_canvas); } |
| 67 | 66 |
| 68 bool wouldTaintOrigin(CanvasImageSource*); | 67 bool wouldTaintOrigin(CanvasImageSource*); |
| 69 | 68 |
| 70 protected: | 69 protected: |
| 71 CanvasRenderingContext(HTMLCanvasElement*); | 70 CanvasRenderingContext(HTMLCanvasElement*); |
| 72 | 71 |
| 73 private: | 72 private: |
| 74 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; | 73 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; |
| 75 HashSet<String> m_cleanURLs; | 74 HashSet<String> m_cleanURLs; |
| 76 HashSet<String> m_dirtyURLs; | 75 HashSet<String> m_dirtyURLs; |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 } // namespace blink | 78 } // namespace blink |
| 80 | 79 |
| 81 #endif | 80 #endif |
| OLD | NEW |