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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 void paint(GraphicsContext&, const LayoutRect&); | 136 void paint(GraphicsContext&, const LayoutRect&); |
137 | 137 |
138 SkCanvas* drawingCanvas() const; | 138 SkCanvas* drawingCanvas() const; |
139 void disableDeferral(DisableDeferralReason) const; | 139 void disableDeferral(DisableDeferralReason) const; |
140 SkCanvas* existingDrawingCanvas() const; | 140 SkCanvas* existingDrawingCanvas() const; |
141 | 141 |
142 CanvasRenderingContext* renderingContext() const { return m_context.get(); } | 142 CanvasRenderingContext* renderingContext() const { return m_context.get(); } |
143 | 143 |
144 void ensureUnacceleratedImageBuffer(); | 144 void ensureUnacceleratedImageBuffer(); |
145 ImageBuffer* buffer() const; | 145 ImageBuffer* buffer() const; |
146 PassRefPtr<Image> copiedImage(SourceDrawingBuffer, AccelerationHint) const; | 146 PassRefPtr<Image> copiedImage(SourceDrawingBuffer, |
| 147 AccelerationHint, |
| 148 SnapshotReason) const; |
147 void clearCopiedImage(); | 149 void clearCopiedImage(); |
148 | 150 |
149 SecurityOrigin* getSecurityOrigin() const; | 151 SecurityOrigin* getSecurityOrigin() const; |
150 bool originClean() const; | 152 bool originClean() const; |
151 void setOriginTainted() { m_originClean = false; } | 153 void setOriginTainted() { m_originClean = false; } |
152 | 154 |
153 AffineTransform baseTransform() const; | 155 AffineTransform baseTransform() const; |
154 | 156 |
155 bool is3D() const; | 157 bool is3D() const; |
156 bool isAnimated2D() const; | 158 bool isAnimated2D() const; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // Used for OffscreenCanvas that controls this HTML canvas element | 306 // Used for OffscreenCanvas that controls this HTML canvas element |
305 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; | 307 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; |
306 | 308 |
307 int m_numFramesSinceLastRenderingModeSwitch; | 309 int m_numFramesSinceLastRenderingModeSwitch; |
308 bool m_pendingRenderingModeSwitch; | 310 bool m_pendingRenderingModeSwitch; |
309 }; | 311 }; |
310 | 312 |
311 } // namespace blink | 313 } // namespace blink |
312 | 314 |
313 #endif // HTMLCanvasElement_h | 315 #endif // HTMLCanvasElement_h |
OLD | NEW |