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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 class AffineTransform; | 48 class AffineTransform; |
49 class CanvasContextCreationAttributes; | 49 class CanvasContextCreationAttributes; |
50 class CanvasRenderingContext; | 50 class CanvasRenderingContext; |
51 class GraphicsContext; | 51 class GraphicsContext; |
52 class GraphicsContextStateSaver; | 52 class GraphicsContextStateSaver; |
53 class HTMLCanvasElement; | 53 class HTMLCanvasElement; |
54 class Image; | 54 class Image; |
55 class ImageData; | |
56 class ImageBuffer; | 55 class ImageBuffer; |
57 class ImageBufferSurface; | 56 class ImageBufferSurface; |
58 class IntSize; | 57 class IntSize; |
59 | 58 |
60 class CORE_EXPORT CanvasObserver : public WillBeGarbageCollectedMixin { | 59 class CORE_EXPORT CanvasObserver : public WillBeGarbageCollectedMixin { |
61 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(CanvasObserver); | 60 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(CanvasObserver); |
62 public: | 61 public: |
63 virtual void canvasChanged(HTMLCanvasElement*, const FloatRect& changedRect)
= 0; | 62 virtual void canvasChanged(HTMLCanvasElement*, const FloatRect& changedRect)
= 0; |
64 virtual void canvasResized(HTMLCanvasElement*) = 0; | 63 virtual void canvasResized(HTMLCanvasElement*) = 0; |
65 #if !ENABLE(OILPAN) | 64 #if !ENABLE(OILPAN) |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 bool m_imageBufferIsClear; | 214 bool m_imageBufferIsClear; |
216 OwnPtr<ImageBuffer> m_imageBuffer; | 215 OwnPtr<ImageBuffer> m_imageBuffer; |
217 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; | 216 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; |
218 | 217 |
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). | 218 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). |
220 }; | 219 }; |
221 | 220 |
222 } // namespace blink | 221 } // namespace blink |
223 | 222 |
224 #endif // HTMLCanvasElement_h | 223 #endif // HTMLCanvasElement_h |
OLD | NEW |