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 #include "sky/engine/config.h" | 5 #include "sky/engine/config.h" |
6 #include "sky/engine/core/painting/Paint.h" | 6 #include "sky/engine/core/painting/Paint.h" |
7 | 7 |
| 8 #include "sky/engine/core/painting/DrawLooper.h" |
| 9 |
8 namespace blink { | 10 namespace blink { |
9 | 11 |
10 Paint::Paint() | 12 Paint::Paint() |
11 { | 13 { |
12 } | 14 } |
13 | 15 |
14 Paint::~Paint() | 16 Paint::~Paint() |
15 { | 17 { |
16 } | 18 } |
17 | 19 |
| 20 void Paint::setDrawLooper(DrawLooper* looper) |
| 21 { |
| 22 ASSERT(looper); |
| 23 m_paint.setLooper(looper->looper()); |
| 24 } |
| 25 |
18 } // namespace blink | 26 } // namespace blink |
OLD | NEW |