21f8b51099
This reverts commit f625e4ce45
.
Change-Id: Id73c53ec7ab8d4a5951712dc150d86e6349addbf
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/325658
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
59 lines
2.5 KiB
C++
59 lines
2.5 KiB
C++
/*
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef TestSurface_DEFINED
|
|
#define TestSurface_DEFINED
|
|
|
|
#include "include/core/SkImageInfo.h"
|
|
#include "include/core/SkSize.h"
|
|
#include "include/gpu/GrTypes.h"
|
|
#include "include/private/SkColorData.h"
|
|
|
|
class GrDirectContext;
|
|
class SkSurface;
|
|
class SkSurfaceProps;
|
|
|
|
namespace sk_gpu_test {
|
|
|
|
sk_sp<SkSurface> MakeBackendTextureSurface(GrDirectContext*,
|
|
const SkImageInfo&,
|
|
GrSurfaceOrigin,
|
|
int sampleCnt,
|
|
GrMipmapped = GrMipmapped::kNo,
|
|
GrProtected = GrProtected::kNo,
|
|
const SkSurfaceProps* = nullptr);
|
|
|
|
sk_sp<SkSurface> MakeBackendTextureSurface(GrDirectContext*,
|
|
SkISize,
|
|
GrSurfaceOrigin,
|
|
int sampleCnt,
|
|
SkColorType,
|
|
sk_sp<SkColorSpace> = nullptr,
|
|
GrMipmapped = GrMipmapped::kNo,
|
|
GrProtected = GrProtected::kNo,
|
|
const SkSurfaceProps* = nullptr);
|
|
|
|
/** Creates an SkSurface backed by a non-textureable render target. */
|
|
sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext*,
|
|
const SkImageInfo&,
|
|
GrSurfaceOrigin,
|
|
int sampleCnt,
|
|
GrProtected = GrProtected::kNo,
|
|
const SkSurfaceProps* = nullptr);
|
|
|
|
sk_sp<SkSurface> MakeBackendRenderTargetSurface(GrDirectContext*,
|
|
SkISize,
|
|
GrSurfaceOrigin,
|
|
int sampleCnt,
|
|
SkColorType,
|
|
sk_sp<SkColorSpace> = nullptr,
|
|
GrProtected = GrProtected::kNo,
|
|
const SkSurfaceProps* = nullptr);
|
|
} // namespace sk_gpu_test
|
|
|
|
#endif
|