| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(ExecutionContext*) override; | 174 void contextDestroyed(ExecutionContext*) override; |
| 175 void contextDestroyed(Page*) override; | |
| 176 | 175 |
| 177 // PageVisibilityObserver implementation | 176 // PageVisibilityObserver implementation |
| 178 void pageVisibilityChanged() override; | 177 void pageVisibilityChanged() override; |
| 179 | 178 |
| 180 // CanvasImageSource implementation | 179 // CanvasImageSource implementation |
| 181 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, | 180 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, |
| 182 AccelerationHint, | 181 AccelerationHint, |
| 183 SnapshotReason, | 182 SnapshotReason, |
| 184 const FloatSize&) const override; | 183 const FloatSize&) const override; |
| 185 bool wouldTaintOrigin(SecurityOrigin*) const override; | 184 bool wouldTaintOrigin(SecurityOrigin*) const override; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 // Used for OffscreenCanvas that controls this HTML canvas element | 309 // Used for OffscreenCanvas that controls this HTML canvas element |
| 311 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; | 310 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; |
| 312 | 311 |
| 313 int m_numFramesSinceLastRenderingModeSwitch; | 312 int m_numFramesSinceLastRenderingModeSwitch; |
| 314 bool m_pendingRenderingModeSwitch; | 313 bool m_pendingRenderingModeSwitch; |
| 315 }; | 314 }; |
| 316 | 315 |
| 317 } // namespace blink | 316 } // namespace blink |
| 318 | 317 |
| 319 #endif // HTMLCanvasElement_h | 318 #endif // HTMLCanvasElement_h |
| OLD | NEW |