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 <memory> |
8 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
10 #include "modules/canvas2d/BaseRenderingContext2D.h" | 11 #include "modules/canvas2d/BaseRenderingContext2D.h" |
11 #include "platform/graphics/ImageBuffer.h" | 12 #include "platform/graphics/ImageBuffer.h" |
12 #include <memory> | |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class CanvasImageSource; | 16 class CanvasImageSource; |
17 class Color; | 17 class Color; |
18 | 18 |
19 class MODULES_EXPORT PaintRenderingContext2D | 19 class MODULES_EXPORT PaintRenderingContext2D |
20 : public BaseRenderingContext2D, | 20 : public BaseRenderingContext2D, |
21 public GarbageCollectedFinalized<PaintRenderingContext2D>, | 21 public GarbageCollectedFinalized<PaintRenderingContext2D>, |
22 public ScriptWrappable { | 22 public ScriptWrappable { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 bool hasAlpha, | 78 bool hasAlpha, |
79 float zoom); | 79 float zoom); |
80 | 80 |
81 std::unique_ptr<ImageBuffer> m_imageBuffer; | 81 std::unique_ptr<ImageBuffer> m_imageBuffer; |
82 bool m_hasAlpha; | 82 bool m_hasAlpha; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace blink | 85 } // namespace blink |
86 | 86 |
87 #endif // PaintRenderingContext2D_h | 87 #endif // PaintRenderingContext2D_h |
OLD | NEW |