raftias | 9488833 | 2016-10-18 10:02:51 -0700 | [diff] [blame] | 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 | |
Matt Sarett | 523116d | 2017-01-12 18:36:38 -0500 | [diff] [blame] | 10 | SkColorSpace_A2B::SkColorSpace_A2B(ICCTypeFlag iccType, std::vector<Element> elements, |
raftias | 5476128 | 2016-12-01 13:44:07 -0500 | [diff] [blame] | 11 | PCS pcs, sk_sp<SkData> profileData) |
Matt Sarett | f388093 | 2017-03-24 10:06:03 -0400 | [diff] [blame] | 12 | : INHERITED(std::move(profileData)) |
Matt Sarett | 523116d | 2017-01-12 18:36:38 -0500 | [diff] [blame] | 13 | , fICCType(iccType) |
Mike Klein | 62458a6 | 2016-12-01 16:38:16 +0000 | [diff] [blame] | 14 | , fElements(std::move(elements)) |
raftias | 5476128 | 2016-12-01 13:44:07 -0500 | [diff] [blame] | 15 | , fPCS(pcs) |
Matt Sarett | 523116d | 2017-01-12 18:36:38 -0500 | [diff] [blame] | 16 | { |
| 17 | SkASSERT(kRGB_ICCTypeFlag == iccType || kCMYK_ICCTypeFlag == iccType); |
| 18 | } |