aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/sksg/paint/SkSGColor.cpp
blob: d5d4d1ce62ce98958f8826703afc559cd9062833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright 2017 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "SkSGColor.h"

namespace sksg {

Color::Color(SkColor c) : fColor(c) {}

void Color::onApplyToPaint(SkPaint* paint) const {
    paint->setColor(fColor);
}

} // namespace sksg