blob: 7e097ffa8032219bdf59c42c23c616d8b44c0009 [file] [log] [blame]
raftias94888332016-10-18 10:02:51 -07001/*
2 * Copyright 2016 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 "SkColorSpace_A2B.h"
9
Matt Sarett523116d2017-01-12 18:36:38 -050010SkColorSpace_A2B::SkColorSpace_A2B(ICCTypeFlag iccType, std::vector<Element> elements,
raftias54761282016-12-01 13:44:07 -050011 PCS pcs, sk_sp<SkData> profileData)
Matt Sarettf3880932017-03-24 10:06:03 -040012 : INHERITED(std::move(profileData))
Matt Sarett523116d2017-01-12 18:36:38 -050013 , fICCType(iccType)
Mike Klein62458a62016-12-01 16:38:16 +000014 , fElements(std::move(elements))
raftias54761282016-12-01 13:44:07 -050015 , fPCS(pcs)
Matt Sarett523116d2017-01-12 18:36:38 -050016{
17 SkASSERT(kRGB_ICCTypeFlag == iccType || kCMYK_ICCTypeFlag == iccType);
18}