| 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" | |
| 6 #include "sky/engine/core/painting/CanvasGradient.h" | 5 #include "sky/engine/core/painting/CanvasGradient.h" |
| 7 | 6 |
| 8 namespace blink { | 7 namespace blink { |
| 9 | 8 |
| 10 PassRefPtr<CanvasGradient> CanvasGradient::create() { | 9 PassRefPtr<CanvasGradient> CanvasGradient::create() { |
| 11 return adoptRef(new CanvasGradient()); | 10 return adoptRef(new CanvasGradient()); |
| 12 } | 11 } |
| 13 | 12 |
| 14 void CanvasGradient::initLinear(const Vector<Point>& end_points, | 13 void CanvasGradient::initLinear(const Vector<Point>& end_points, |
| 15 const Vector<SkColor>& colors, | 14 const Vector<SkColor>& colors, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 43 CanvasGradient::CanvasGradient() | 42 CanvasGradient::CanvasGradient() |
| 44 : Shader(nullptr) | 43 : Shader(nullptr) |
| 45 { | 44 { |
| 46 } | 45 } |
| 47 | 46 |
| 48 CanvasGradient::~CanvasGradient() | 47 CanvasGradient::~CanvasGradient() |
| 49 { | 48 { |
| 50 } | 49 } |
| 51 | 50 |
| 52 } // namespace blink | 51 } // namespace blink |
| OLD | NEW |