| 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 | 57 |
| 58 virtual bool is2d() const { return false; } | 58 virtual bool is2d() const { return false; } |
| 59 virtual bool is3d() const { return false; } | 59 virtual bool is3d() const { return false; } |
| 60 virtual bool isAccelerated() const { return false; } | 60 virtual bool isAccelerated() const { return false; } |
| 61 virtual bool hasAlpha() const { return true; } | 61 virtual bool hasAlpha() const { return true; } |
| 62 virtual void setIsHidden(bool) = 0; | 62 virtual void setIsHidden(bool) = 0; |
| 63 | 63 |
| 64 // Return true if the content is updated. | 64 // Return true if the content is updated. |
| 65 virtual bool paintRenderingResultsToCanvas(SourceDrawingBuffer) { return fal
se; } | 65 virtual bool paintRenderingResultsToCanvas(SourceDrawingBuffer) { return fal
se; } |
| 66 | 66 |
| 67 virtual blink::WebLayer* platformLayer() const { return nullptr; } | 67 virtual WebLayer* platformLayer() const { return nullptr; } |
| 68 | 68 |
| 69 bool wouldTaintOrigin(CanvasImageSource*); | 69 bool wouldTaintOrigin(CanvasImageSource*); |
| 70 void didMoveToNewDocument(Document*); | 70 void didMoveToNewDocument(Document*); |
| 71 | 71 |
| 72 protected: | 72 protected: |
| 73 CanvasRenderingContext(HTMLCanvasElement*); | 73 CanvasRenderingContext(HTMLCanvasElement*); |
| 74 DECLARE_VIRTUAL_TRACE(); | 74 DECLARE_VIRTUAL_TRACE(); |
| 75 | 75 |
| 76 // ActiveDOMObject notifications | 76 // ActiveDOMObject notifications |
| 77 bool hasPendingActivity() const override final; | 77 bool hasPendingActivity() const override final; |
| 78 void stop() override = 0; | 78 void stop() override = 0; |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; | 81 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; |
| 82 HashSet<String> m_cleanURLs; | 82 HashSet<String> m_cleanURLs; |
| 83 HashSet<String> m_dirtyURLs; | 83 HashSet<String> m_dirtyURLs; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace blink | 86 } // namespace blink |
| 87 | 87 |
| 88 #endif | 88 #endif |
| OLD | NEW |