OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "AffineTransform.h" | 29 #include "AffineTransform.h" |
30 #include "CanvasRenderingContext.h" | 30 #include "CanvasRenderingContext.h" |
31 #include "Color.h" | 31 #include "Color.h" |
32 #include "FloatSize.h" | 32 #include "FloatSize.h" |
33 #include "Font.h" | 33 #include "Font.h" |
34 #include "GraphicsTypes.h" | 34 #include "GraphicsTypes.h" |
35 #include "Path.h" | 35 #include "Path.h" |
36 #include "PlatformString.h" | 36 #include "PlatformString.h" |
37 #include <wtf/Vector.h> | 37 #include <wtf/Vector.h> |
38 | 38 |
39 | |
40 #if USE(ACCELERATED_COMPOSITING) | 39 #if USE(ACCELERATED_COMPOSITING) |
41 #include "GraphicsLayer.h" | 40 #include "GraphicsLayer.h" |
42 #endif | 41 #endif |
43 | 42 |
44 namespace WebCore { | 43 namespace WebCore { |
45 | 44 |
46 class CanvasGradient; | 45 class CanvasGradient; |
47 class CanvasPattern; | 46 class CanvasPattern; |
48 class CanvasStyle; | 47 class CanvasStyle; |
49 class FloatRect; | 48 class FloatRect; |
50 class GraphicsContext; | 49 class GraphicsContext; |
51 class HTMLCanvasElement; | 50 class HTMLCanvasElement; |
52 class HTMLImageElement; | 51 class HTMLImageElement; |
53 class HTMLVideoElement; | 52 class HTMLVideoElement; |
54 class ImageData; | 53 class ImageData; |
55 class TextMetrics; | 54 class TextMetrics; |
56 | 55 |
57 #if ENABLE(ACCELERATED_2D_CANVAS) | 56 #if ENABLE(ACCELERATED_2D_CANVAS) |
58 class DrawingBuffer; | 57 class DrawingBuffer; |
59 class GraphicsContext3D; | 58 class SharedGraphicsContext3D; |
60 #endif | 59 #endif |
61 | 60 |
62 typedef int ExceptionCode; | 61 typedef int ExceptionCode; |
63 | 62 |
64 class CanvasRenderingContext2D : public CanvasRenderingContext { | 63 class CanvasRenderingContext2D : public CanvasRenderingContext { |
65 public: | 64 public: |
66 static PassOwnPtr<CanvasRenderingContext2D> create(HTMLCanvasElement* canvas
, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode) | 65 static PassOwnPtr<CanvasRenderingContext2D> create(HTMLCanvasElement* canvas
, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode) |
67 { | 66 { |
68 return adoptPtr(new CanvasRenderingContext2D(canvas, usesCSSCompatibilit
yParseMode, usesDashboardCompatibilityMode)); | 67 return adoptPtr(new CanvasRenderingContext2D(canvas, usesCSSCompatibilit
yParseMode, usesDashboardCompatibilityMode)); |
69 } | 68 } |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 #endif | 300 #endif |
302 | 301 |
303 Vector<State, 1> m_stateStack; | 302 Vector<State, 1> m_stateStack; |
304 bool m_usesCSSCompatibilityParseMode; | 303 bool m_usesCSSCompatibilityParseMode; |
305 #if ENABLE(DASHBOARD_SUPPORT) | 304 #if ENABLE(DASHBOARD_SUPPORT) |
306 bool m_usesDashboardCompatibilityMode; | 305 bool m_usesDashboardCompatibilityMode; |
307 #endif | 306 #endif |
308 | 307 |
309 #if ENABLE(ACCELERATED_2D_CANVAS) | 308 #if ENABLE(ACCELERATED_2D_CANVAS) |
310 RefPtr<DrawingBuffer> m_drawingBuffer; | 309 RefPtr<DrawingBuffer> m_drawingBuffer; |
311 RefPtr<GraphicsContext3D> m_context3D; | 310 RefPtr<SharedGraphicsContext3D> m_context3D; |
312 #endif | 311 #endif |
313 }; | 312 }; |
314 | 313 |
315 } // namespace WebCore | 314 } // namespace WebCore |
316 | 315 |
317 #endif | 316 #endif |
OLD | NEW |