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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "platform/geometry/IntSize.h" | 44 #include "platform/geometry/IntSize.h" |
45 #include "platform/graphics/CanvasSurfaceLayerBridge.h" | 45 #include "platform/graphics/CanvasSurfaceLayerBridge.h" |
46 #include "platform/graphics/GraphicsTypes.h" | 46 #include "platform/graphics/GraphicsTypes.h" |
47 #include "platform/graphics/GraphicsTypes3D.h" | 47 #include "platform/graphics/GraphicsTypes3D.h" |
48 #include "platform/graphics/ImageBufferClient.h" | 48 #include "platform/graphics/ImageBufferClient.h" |
49 #include "platform/heap/Handle.h" | 49 #include "platform/heap/Handle.h" |
50 #include <memory> | 50 #include <memory> |
51 | 51 |
52 #define CanvasDefaultInterpolationQuality InterpolationLow | 52 #define CanvasDefaultInterpolationQuality InterpolationLow |
53 | 53 |
54 class SkColorSpace; | |
55 | |
56 namespace blink { | 54 namespace blink { |
57 | 55 |
58 class AffineTransform; | 56 class AffineTransform; |
59 class CanvasContextCreationAttributes; | 57 class CanvasContextCreationAttributes; |
60 class CanvasRenderingContext; | 58 class CanvasRenderingContext; |
61 class CanvasRenderingContextFactory; | 59 class CanvasRenderingContextFactory; |
62 class GraphicsContext; | 60 class GraphicsContext; |
63 class HitTestCanvasResult; | 61 class HitTestCanvasResult; |
64 class HTMLCanvasElement; | 62 class HTMLCanvasElement; |
65 class Image; | 63 class Image; |
66 class ImageBitmapOptions; | 64 class ImageBitmapOptions; |
67 class ImageBuffer; | 65 class ImageBuffer; |
68 class ImageBufferSurface; | 66 class ImageBufferSurface; |
69 class ImageData; | 67 class ImageData; |
70 class IntSize; | 68 class IntSize; |
71 class WebGraphicsContext3DProvider; | |
72 | 69 |
73 class | 70 class |
74 CanvasRenderingContext2DOrWebGLRenderingContextOrWebGL2RenderingContextOrIma
geBitmapRenderingContext; | 71 CanvasRenderingContext2DOrWebGLRenderingContextOrWebGL2RenderingContextOrIma
geBitmapRenderingContext; |
75 typedef CanvasRenderingContext2DOrWebGLRenderingContextOrWebGL2RenderingContextO
rImageBitmapRenderingContext | 72 typedef CanvasRenderingContext2DOrWebGLRenderingContextOrWebGL2RenderingContextO
rImageBitmapRenderingContext |
76 RenderingContext; | 73 RenderingContext; |
77 | 74 |
78 class CORE_EXPORT HTMLCanvasElement final : public HTMLElement, | 75 class CORE_EXPORT HTMLCanvasElement final : public HTMLElement, |
79 public ContextLifecycleObserver, | 76 public ContextLifecycleObserver, |
80 public PageVisibilityObserver, | 77 public PageVisibilityObserver, |
81 public CanvasImageSource, | 78 public CanvasImageSource, |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // Used for OffscreenCanvas that controls this HTML canvas element | 302 // Used for OffscreenCanvas that controls this HTML canvas element |
306 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; | 303 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; |
307 | 304 |
308 int m_numFramesSinceLastRenderingModeSwitch; | 305 int m_numFramesSinceLastRenderingModeSwitch; |
309 bool m_pendingRenderingModeSwitch; | 306 bool m_pendingRenderingModeSwitch; |
310 }; | 307 }; |
311 | 308 |
312 } // namespace blink | 309 } // namespace blink |
313 | 310 |
314 #endif // HTMLCanvasElement_h | 311 #endif // HTMLCanvasElement_h |
OLD | NEW |