1 /* 2 * Copyright 2022 Google LLC 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 "src/gpu/graphite/FactoryFunctions.h" 9 #include "src/gpu/graphite/PrecompileInternal.h" 10 11 namespace skgpu::graphite { 12 13 //-------------------------------------------------------------------------------------------------- makeComposed(sk_sp<PrecompileColorFilter> inner) const14sk_sp<PrecompileColorFilter> PrecompileColorFilter::makeComposed( 15 sk_sp<PrecompileColorFilter> inner) const { 16 if (!inner) { 17 return sk_ref_sp(this); 18 } 19 20 return PrecompileColorFilters::Compose({ sk_ref_sp(this) }, { std::move(inner) }); 21 } 22 23 } // namespace skgpu::graphite 24