Home | History | Annotate | Download | only in src
      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 
     12 Color::Color(SkColor c) : fColor(c) {}
     13 
     14 void Color::onApplyToPaint(SkPaint* paint) const {
     15     paint->setColor(fColor);
     16 }
     17 
     18 } // namespace sksg
     19