| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 void discardImageBuffer(); | 163 void discardImageBuffer(); |
| 164 | 164 |
| 165 bool shouldBeDirectComposited() const; | 165 bool shouldBeDirectComposited() const; |
| 166 | 166 |
| 167 void prepareSurfaceForPaintingIfNeeded() const; | 167 void prepareSurfaceForPaintingIfNeeded() const; |
| 168 | 168 |
| 169 const AtomicString imageSourceURL() const override; | 169 const AtomicString imageSourceURL() const override; |
| 170 | 170 |
| 171 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 171 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 172 | 172 |
| 173 // ContextLifecycleObserver (and PageVisibilityObserver!!!) implementation | 173 // ContextLifecycleObserver and PageVisibilityObserver implementation |
| 174 void contextDestroyed() override; | 174 void contextDestroyed(ExecutionContext*) override; |
| 175 void contextDestroyed(Page*) override; |
| 175 | 176 |
| 176 // PageVisibilityObserver implementation | 177 // PageVisibilityObserver implementation |
| 177 void pageVisibilityChanged() override; | 178 void pageVisibilityChanged() override; |
| 178 | 179 |
| 179 // CanvasImageSource implementation | 180 // CanvasImageSource implementation |
| 180 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, | 181 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, |
| 181 AccelerationHint, | 182 AccelerationHint, |
| 182 SnapshotReason, | 183 SnapshotReason, |
| 183 const FloatSize&) const override; | 184 const FloatSize&) const override; |
| 184 bool wouldTaintOrigin(SecurityOrigin*) const override; | 185 bool wouldTaintOrigin(SecurityOrigin*) const override; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 // Used for OffscreenCanvas that controls this HTML canvas element | 310 // Used for OffscreenCanvas that controls this HTML canvas element |
| 310 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; | 311 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; |
| 311 | 312 |
| 312 int m_numFramesSinceLastRenderingModeSwitch; | 313 int m_numFramesSinceLastRenderingModeSwitch; |
| 313 bool m_pendingRenderingModeSwitch; | 314 bool m_pendingRenderingModeSwitch; |
| 314 }; | 315 }; |
| 315 | 316 |
| 316 } // namespace blink | 317 } // namespace blink |
| 317 | 318 |
| 318 #endif // HTMLCanvasElement_h | 319 #endif // HTMLCanvasElement_h |
| OLD | NEW |