2018-03-07 18:01:25 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2018 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ProxyUtils_DEFINED
|
|
|
|
#define ProxyUtils_DEFINED
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "include/private/GrTypesPriv.h"
|
2019-10-21 19:04:52 +00:00
|
|
|
#include "src/gpu/GrImageInfo.h"
|
2019-11-21 21:02:34 +00:00
|
|
|
#include "src/gpu/GrPipeline.h"
|
2019-06-18 13:58:02 +00:00
|
|
|
#include "src/gpu/GrTextureProxy.h"
|
2018-03-07 18:01:25 +00:00
|
|
|
|
2019-11-21 21:02:34 +00:00
|
|
|
class GrProgramInfo;
|
|
|
|
|
2018-03-07 18:01:25 +00:00
|
|
|
namespace sk_gpu_test {
|
|
|
|
|
|
|
|
/** Makes a texture proxy containing the passed in color data. */
|
2019-10-21 19:04:52 +00:00
|
|
|
sk_sp<GrTextureProxy> MakeTextureProxyFromData(GrContext*,
|
|
|
|
GrRenderable,
|
|
|
|
GrSurfaceOrigin,
|
|
|
|
const GrImageInfo&,
|
|
|
|
const void* data,
|
|
|
|
size_t rowBytes);
|
2018-03-07 18:01:25 +00:00
|
|
|
|
2019-11-21 21:02:34 +00:00
|
|
|
GrProgramInfo* CreateProgramInfo(const GrCaps*,
|
|
|
|
SkArenaAlloc*,
|
2020-04-01 20:22:00 +00:00
|
|
|
const GrSurfaceProxyView* writeView,
|
2019-11-21 21:02:34 +00:00
|
|
|
GrAppliedClip&&,
|
2020-02-28 21:02:40 +00:00
|
|
|
const GrXferProcessor::DstProxyView&,
|
|
|
|
GrGeometryProcessor*,
|
|
|
|
SkBlendMode,
|
2019-11-21 21:02:34 +00:00
|
|
|
GrPrimitiveType,
|
|
|
|
GrPipeline::InputFlags flags = GrPipeline::InputFlags::kNone,
|
|
|
|
const GrUserStencilSettings* stencil =
|
|
|
|
&GrUserStencilSettings::kUnused);
|
|
|
|
|
|
|
|
|
2018-03-07 18:01:25 +00:00
|
|
|
} // namespace sk_gpu_test
|
|
|
|
|
|
|
|
#endif
|