| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SKY_ENGINE_CORE_PAINTING_PAINTINGCONTEXT_H_ | 5 #ifndef SKY_ENGINE_CORE_PAINTING_PAINTINGCONTEXT_H_ |
| 6 #define SKY_ENGINE_CORE_PAINTING_PAINTINGCONTEXT_H_ | 6 #define SKY_ENGINE_CORE_PAINTING_PAINTINGCONTEXT_H_ |
| 7 | 7 |
| 8 #include "sky/engine/core/painting/Canvas.h" | 8 #include "sky/engine/core/painting/Canvas.h" |
| 9 #include "sky/engine/wtf/Vector.h" | 9 #include "sky/engine/wtf/Vector.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 class Element; | 12 class Element; |
| 13 | 13 |
| 14 class PaintingContext : public Canvas { | 14 class PaintingContext : public Canvas { |
| 15 DEFINE_WRAPPERTYPEINFO(); | |
| 16 public: | 15 public: |
| 17 ~PaintingContext() override; | 16 ~PaintingContext() override; |
| 18 static PassRefPtr<PaintingContext> create(PassRefPtr<Element> element, const
FloatSize& size); | 17 static PassRefPtr<PaintingContext> create(PassRefPtr<Element> element, const
FloatSize& size); |
| 19 | 18 |
| 20 void commit(); | 19 void commit(); |
| 21 | 20 |
| 22 private: | 21 private: |
| 23 PaintingContext(PassRefPtr<Element> element, const FloatSize& size); | 22 PaintingContext(PassRefPtr<Element> element, const FloatSize& size); |
| 24 | 23 |
| 25 RefPtr<Element> m_element; | 24 RefPtr<Element> m_element; |
| 26 }; | 25 }; |
| 27 | 26 |
| 28 } // namespace blink | 27 } // namespace blink |
| 29 | 28 |
| 30 #endif // SKY_ENGINE_CORE_PAINTING_PAINTINGCONTEXT_H_ | 29 #endif // SKY_ENGINE_CORE_PAINTING_PAINTINGCONTEXT_H_ |
| OLD | NEW |