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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 String toDataURL(const String& mimeType, const ScriptValue& qualityArgument,
ExceptionState&) const; | 111 String toDataURL(const String& mimeType, const ScriptValue& qualityArgument,
ExceptionState&) const; |
112 String toDataURL(const String& mimeType, ExceptionState& exceptionState) con
st { return toDataURL(mimeType, ScriptValue(), exceptionState); } | 112 String toDataURL(const String& mimeType, ExceptionState& exceptionState) con
st { return toDataURL(mimeType, ScriptValue(), exceptionState); } |
113 | 113 |
114 // Used for rendering | 114 // Used for rendering |
115 void didDraw(const FloatRect&); | 115 void didDraw(const FloatRect&); |
116 void notifyObserversCanvasChanged(const FloatRect&); | 116 void notifyObserversCanvasChanged(const FloatRect&); |
117 | 117 |
118 void paint(GraphicsContext*, const LayoutRect&); | 118 void paint(GraphicsContext*, const LayoutRect&); |
119 | 119 |
120 GraphicsContext* drawingContext() const; // Deprecated: use drawingCanvas | 120 GraphicsContext* drawingContext() const; // Deprecated: use drawingCanvas |
121 GraphicsContext* existingDrawingContext() const; // Deprecated: use existing
DrawingCanvas | |
122 SkCanvas* drawingCanvas() const; | 121 SkCanvas* drawingCanvas() const; |
123 SkCanvas* existingDrawingCanvas() const; | 122 SkCanvas* existingDrawingCanvas() const; |
124 | 123 |
125 CanvasRenderingContext* renderingContext() const { return m_context.get(); } | 124 CanvasRenderingContext* renderingContext() const { return m_context.get(); } |
126 | 125 |
127 void ensureUnacceleratedImageBuffer(); | 126 void ensureUnacceleratedImageBuffer(); |
128 ImageBuffer* buffer() const; | 127 ImageBuffer* buffer() const; |
129 PassRefPtr<Image> copiedImage(SourceDrawingBuffer) const; | 128 PassRefPtr<Image> copiedImage(SourceDrawingBuffer) const; |
130 void clearCopiedImage(); | 129 void clearCopiedImage(); |
131 | 130 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 bool m_imageBufferIsClear; | 215 bool m_imageBufferIsClear; |
217 OwnPtr<ImageBuffer> m_imageBuffer; | 216 OwnPtr<ImageBuffer> m_imageBuffer; |
218 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; | 217 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; |
219 | 218 |
220 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). | 219 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). |
221 }; | 220 }; |
222 | 221 |
223 } // namespace blink | 222 } // namespace blink |
224 | 223 |
225 #endif // HTMLCanvasElement_h | 224 #endif // HTMLCanvasElement_h |
OLD | NEW |