• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2023 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/Image_YUVA_Graphite.h"
9 
10 #include "include/core/SkColorSpace.h"
11 #include "src/gpu/graphite/Log.h"
12 
13 namespace skgpu::graphite {
14 
Image_YUVA(uint32_t uniqueID,YUVATextureProxies proxies,const SkColorInfo & colorInfo)15 Image_YUVA::Image_YUVA(uint32_t uniqueID,
16                        YUVATextureProxies proxies,
17                        const SkColorInfo& colorInfo)
18         : Image_Base(SkImageInfo::Make(proxies.yuvaInfo().dimensions(),
19                                        colorInfo),
20                      uniqueID)
21         , fYUVAProxies(std::move(proxies)) {
22     SkASSERT(fYUVAProxies.isValid());
23 }
24 
25 }
26