2a26c50a62
Bug: skia:11396 Change-Id: I9480b89635bd7a6bdff8ab4876c8eeafdbc27c8b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/442096 Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
51 lines
1.8 KiB
C++
51 lines
1.8 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;
|
|
class GrCPixmap;
|
|
|
|
namespace sk_gpu_test {
|
|
|
|
/** Returns the proxy backing an image if it is texture backed, otherwise nullptr. */
|
|
GrTextureProxy* GetTextureImageProxy(SkImage*, GrRecordingContext*);
|
|
|
|
/** Makes a texture proxy containing the passed in color data. */
|
|
GrSurfaceProxyView MakeTextureProxyViewFromData(GrDirectContext*,
|
|
GrRenderable,
|
|
GrSurfaceOrigin,
|
|
GrCPixmap pixmap);
|
|
|
|
#if SK_GPU_V1
|
|
GrProgramInfo* CreateProgramInfo(const GrCaps*,
|
|
SkArenaAlloc*,
|
|
const GrSurfaceProxyView& writeView,
|
|
bool usesMSAASurface,
|
|
GrAppliedClip&&,
|
|
const GrDstProxyView&,
|
|
GrGeometryProcessor*,
|
|
SkBlendMode,
|
|
GrPrimitiveType,
|
|
GrXferBarrierFlags renderPassXferBarriers,
|
|
GrLoadOp colorLoadOp,
|
|
GrPipeline::InputFlags flags = GrPipeline::InputFlags::kNone,
|
|
const GrUserStencilSettings* stencil =
|
|
&GrUserStencilSettings::kUnused);
|
|
#endif
|
|
|
|
} // namespace sk_gpu_test
|
|
|
|
#endif
|