652124c372
Change-Id: Ie55a147566ef68a64e3b03d8cab701e54dbf1f0d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/309780 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
45 lines
1.6 KiB
C++
45 lines
1.6 KiB
C++
/*
|
|
* 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
|
|
|
|
#include "include/private/GrTypesPriv.h"
|
|
#include "src/gpu/GrImageInfo.h"
|
|
#include "src/gpu/GrPipeline.h"
|
|
#include "src/gpu/GrTextureProxy.h"
|
|
|
|
class GrDirectContext;
|
|
class GrProgramInfo;
|
|
|
|
namespace sk_gpu_test {
|
|
|
|
/** Makes a texture proxy containing the passed in color data. */
|
|
GrSurfaceProxyView MakeTextureProxyViewFromData(GrDirectContext*,
|
|
GrRenderable,
|
|
GrSurfaceOrigin,
|
|
const GrImageInfo&,
|
|
const void* data,
|
|
size_t rowBytes);
|
|
|
|
GrProgramInfo* CreateProgramInfo(const GrCaps*,
|
|
SkArenaAlloc*,
|
|
const GrSurfaceProxyView* writeView,
|
|
GrAppliedClip&&,
|
|
const GrXferProcessor::DstProxyView&,
|
|
GrGeometryProcessor*,
|
|
SkBlendMode,
|
|
GrPrimitiveType,
|
|
GrPipeline::InputFlags flags = GrPipeline::InputFlags::kNone,
|
|
const GrUserStencilSettings* stencil =
|
|
&GrUserStencilSettings::kUnused);
|
|
|
|
|
|
} // namespace sk_gpu_test
|
|
|
|
#endif
|