1/* 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 10SkColorSpace_A2B::SkColorSpace_A2B(SkColorSpace::Type iccType, std::vector<Element> elements, 11 PCS pcs, sk_sp<SkData> profileData) 12 : fProfileData(std::move(profileData)) 13 , fICCType(iccType) 14 , fElements(std::move(elements)) 15 , fPCS(pcs) 16{ 17 SkASSERT(SkColorSpace::kRGB_Type == iccType || SkColorSpace::kCMYK_Type == iccType); 18} 19