• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2019 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 #ifndef GrDawnUtil_DEFINED
9 #define GrDawnUtil_DEFINED
10 
11 #include "include/private/GrTypesPriv.h"
12 #include "dawn/dawncpp.h"
13 
14 GrPixelConfig GrDawnFormatToPixelConfig(dawn::TextureFormat format);
15 bool GrDawnFormatIsRenderable(dawn::TextureFormat format);
16 bool GrPixelConfigToDawnFormat(GrPixelConfig config, dawn::TextureFormat* format);
17 size_t GrDawnRoundRowBytes(size_t rowBytes);
18 #if GR_TEST_UTILS
19 const char* GrDawnFormatToStr(dawn::TextureFormat format);
20 #endif
21 
22 #endif // GrDawnUtil_DEFINED
23