blob: cd5bd6809611d7e81965e61c1c9f9096722d6ae4 [file] [log] [blame] [edit]
/*
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/graphite/FactoryFunctions.h"
#include "src/gpu/graphite/PrecompileInternal.h"
namespace skgpu::graphite {
//--------------------------------------------------------------------------------------------------
sk_sp<PrecompileColorFilter> PrecompileColorFilter::makeComposed(
sk_sp<PrecompileColorFilter> inner) const {
if (!inner) {
return sk_ref_sp(this);
}
return PrecompileColorFilters::Compose({ sk_ref_sp(this) }, { std::move(inner) });
}
} // namespace skgpu::graphite