1 /* 2 * Copyright 2017 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #include "SkSGColor.h" 9 10 namespace sksg { 11 Color(SkColor c)12Color::Color(SkColor c) : fColor(c) {} 13 onApplyToPaint(SkPaint * paint) const14void Color::onApplyToPaint(SkPaint* paint) const { 15 paint->setColor(fColor); 16 } 17 18 } // namespace sksg 19