OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. 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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #ifndef GraphicsContext_h | 28 #ifndef GraphicsContext_h |
29 #define GraphicsContext_h | 29 #define GraphicsContext_h |
30 | 30 |
31 #include "platform/PlatformExport.h" | 31 #include "platform/PlatformExport.h" |
32 #include "platform/fonts/Font.h" | 32 #include "platform/fonts/Font.h" |
33 #include "platform/geometry/FloatRect.h" | 33 #include "platform/geometry/FloatRect.h" |
34 #include "platform/geometry/FloatRoundedRect.h" | 34 #include "platform/geometry/FloatRoundedRect.h" |
35 #include "platform/graphics/DashArray.h" | 35 #include "platform/graphics/DashArray.h" |
36 #include "platform/graphics/DrawLooperBuilder.h" | 36 #include "platform/graphics/DrawLooperBuilder.h" |
| 37 #include "platform/graphics/GraphicsContextState.h" |
37 #include "platform/graphics/ImageOrientation.h" | 38 #include "platform/graphics/ImageOrientation.h" |
38 #include "platform/graphics/GraphicsContextState.h" | |
39 #include "platform/graphics/skia/SkiaUtils.h" | 39 #include "platform/graphics/skia/SkiaUtils.h" |
40 #include "third_party/skia/include/core/SkMetaData.h" | 40 #include "third_party/skia/include/core/SkMetaData.h" |
41 #include "third_party/skia/include/core/SkPictureRecorder.h" | 41 #include "third_party/skia/include/core/SkPictureRecorder.h" |
42 #include "third_party/skia/include/core/SkRegion.h" | 42 #include "third_party/skia/include/core/SkRegion.h" |
43 #include "wtf/Allocator.h" | 43 #include "wtf/Allocator.h" |
44 #include "wtf/Forward.h" | 44 #include "wtf/Forward.h" |
45 #include "wtf/Noncopyable.h" | 45 #include "wtf/Noncopyable.h" |
46 #include "wtf/PassOwnPtr.h" | 46 #include "wtf/PassOwnPtr.h" |
47 | 47 |
48 class SkBitmap; | 48 class SkBitmap; |
49 class SkImage; | 49 class SkImage; |
50 class SkPaint; | 50 class SkPaint; |
51 class SkPath; | 51 class SkPath; |
52 class SkPicture; | 52 class SkPicture; |
53 class SkRRect; | 53 class SkRRect; |
54 class SkTextBlob; | 54 class SkTextBlob; |
55 struct SkImageInfo; | 55 struct SkImageInfo; |
56 struct SkRect; | 56 struct SkRect; |
57 | 57 |
58 namespace blink { | 58 namespace blink { |
59 | 59 |
60 class ImageBuffer; | 60 class ImageBuffer; |
61 class KURL; | 61 class KURL; |
62 class PaintController; | 62 class PaintController; |
| 63 class Path; |
63 | 64 |
64 class PLATFORM_EXPORT GraphicsContext { | 65 class PLATFORM_EXPORT GraphicsContext { |
65 WTF_MAKE_NONCOPYABLE(GraphicsContext); USING_FAST_MALLOC(GraphicsContext); | 66 WTF_MAKE_NONCOPYABLE(GraphicsContext); USING_FAST_MALLOC(GraphicsContext); |
66 public: | 67 public: |
67 enum DisabledMode { | 68 enum DisabledMode { |
68 NothingDisabled = 0, // Run as normal. | 69 NothingDisabled = 0, // Run as normal. |
69 FullyDisabled = 1 // Do absolutely minimal work to remove the cost of th
e context from performance tests. | 70 FullyDisabled = 1 // Do absolutely minimal work to remove the cost of th
e context from performance tests. |
70 }; | 71 }; |
71 | 72 |
72 explicit GraphicsContext(PaintController&, DisabledMode = NothingDisabled, S
kMetaData* = 0); | 73 explicit GraphicsContext(PaintController&, DisabledMode = NothingDisabled, S
kMetaData* = 0); |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 | 375 |
375 float m_deviceScaleFactor; | 376 float m_deviceScaleFactor; |
376 | 377 |
377 unsigned m_printing : 1; | 378 unsigned m_printing : 1; |
378 unsigned m_hasMetaData : 1; | 379 unsigned m_hasMetaData : 1; |
379 }; | 380 }; |
380 | 381 |
381 } // namespace blink | 382 } // namespace blink |
382 | 383 |
383 #endif // GraphicsContext_h | 384 #endif // GraphicsContext_h |
OLD | NEW |