1/* 2 * Copyright 2021 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 "experimental/graphite/include/BackendTexture.h" 9 10namespace skgpu { 11 12#ifdef SK_METAL 13BackendTexture::BackendTexture(SkISize dimensions, sk_cfp<mtl::Handle> mtlTexture) 14 : fDimensions(dimensions) 15 , fInfo(mtl::TextureInfo(mtlTexture.get())) 16 , fMtlTexture(std::move(mtlTexture)) {} 17#endif 18 19} // namespace skgpu 20 21