Brian Salomon | 72c7b98 | 2020-10-06 10:07:38 -0400 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2020 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 | #ifndef TestSurface_DEFINED |
| 9 | #define TestSurface_DEFINED |
| 10 | |
| 11 | #include "include/core/SkImageInfo.h" |
| 12 | #include "include/core/SkSize.h" |
| 13 | #include "include/gpu/GrTypes.h" |
| 14 | #include "include/private/SkColorData.h" |
| 15 | |
| 16 | class GrDirectContext; |
| 17 | class SkSurface; |
| 18 | class SkSurfaceProps; |
| 19 | |
| 20 | /** Creates an SkSurface backed by a non-textureable render target. */ |
| 21 | sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext*, |
| 22 | SkISize, |
| 23 | int sampleCnt, |
| 24 | GrSurfaceOrigin, |
| 25 | SkColorType, |
| 26 | sk_sp<SkColorSpace> = nullptr, |
| 27 | const SkSurfaceProps* = nullptr); |
| 28 | |
| 29 | #endif |