OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PaintRenderingContext2D_h | 5 #ifndef PaintRenderingContext2D_h |
6 #define PaintRenderingContext2D_h | 6 #define PaintRenderingContext2D_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
10 #include "modules/canvas2d/BaseRenderingContext2D.h" | 10 #include "modules/canvas2d/BaseRenderingContext2D.h" |
| 11 #include "platform/graphics/ImageBuffer.h" |
11 #include "third_party/skia/include/core/SkCanvas.h" | 12 #include "third_party/skia/include/core/SkCanvas.h" |
12 | 13 |
13 namespace blink { | 14 namespace blink { |
14 | 15 |
15 class CanvasImageSource; | 16 class CanvasImageSource; |
16 class Color; | 17 class Color; |
17 class ImageBuffer; | |
18 | 18 |
19 class MODULES_EXPORT PaintRenderingContext2D : public BaseRenderingContext2D, pu
blic RefCountedWillBeGarbageCollectedFinalized<PaintRenderingContext2D>, public
ScriptWrappable { | 19 class MODULES_EXPORT PaintRenderingContext2D : public BaseRenderingContext2D, pu
blic RefCountedWillBeGarbageCollectedFinalized<PaintRenderingContext2D>, public
ScriptWrappable { |
20 DEFINE_WRAPPERTYPEINFO(); | 20 DEFINE_WRAPPERTYPEINFO(); |
21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PaintRenderingContext2D); | 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PaintRenderingContext2D); |
22 WTF_MAKE_NONCOPYABLE(PaintRenderingContext2D); | 22 WTF_MAKE_NONCOPYABLE(PaintRenderingContext2D); |
23 USING_FAST_MALLOC_WILL_BE_REMOVED(PaintRenderingContext2D); | 23 USING_FAST_MALLOC_WILL_BE_REMOVED(PaintRenderingContext2D); |
24 public: | 24 public: |
25 static PassRefPtrWillBeRawPtr<PaintRenderingContext2D> create(PassOwnPtr<Ima
geBuffer> imageBuffer) | 25 static PassRefPtrWillBeRawPtr<PaintRenderingContext2D> create(PassOwnPtr<Ima
geBuffer> imageBuffer) |
26 { | 26 { |
27 return adoptRefWillBeNoop(new PaintRenderingContext2D(imageBuffer)); | 27 return adoptRefWillBeNoop(new PaintRenderingContext2D(imageBuffer)); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 private: | 68 private: |
69 explicit PaintRenderingContext2D(PassOwnPtr<ImageBuffer>); | 69 explicit PaintRenderingContext2D(PassOwnPtr<ImageBuffer>); |
70 | 70 |
71 OwnPtr<ImageBuffer> m_imageBuffer; | 71 OwnPtr<ImageBuffer> m_imageBuffer; |
72 }; | 72 }; |
73 | 73 |
74 } // namespace blink | 74 } // namespace blink |
75 | 75 |
76 #endif // PaintRenderingContext2D_h | 76 #endif // PaintRenderingContext2D_h |
OLD | NEW |