blob: 93dfa4d6eeb7c4a40bac6b6939a0c01079d02a97 [file] [log] [blame]
Brian Salomon72c7b982020-10-06 10:07:38 -04001/*
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
16class GrDirectContext;
17class SkSurface;
18class SkSurfaceProps;
19
20/** Creates an SkSurface backed by a non-textureable render target. */
21sk_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