Flutter Engine
The Flutter Engine
ProxyUtils.h
Go to the documentation of this file.
1/*
2 * Copyright 2018 Google Inc.
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 ProxyUtils_DEFINED
9#define ProxyUtils_DEFINED
10
15
16class GrDirectContext;
17class GrProgramInfo;
18class GrCPixmap;
19
20namespace sk_gpu_test {
21
22/** Returns the proxy backing an image if it is texture backed, otherwise nullptr. */
24
25/** Makes a texture proxy containing the passed in color data. */
29 GrCPixmap pixmap);
30
31#if defined(SK_GANESH)
32GrProgramInfo* CreateProgramInfo(const GrCaps*,
34 const GrSurfaceProxyView& writeView,
35 bool usesMSAASurface,
37 const GrDstProxyView&,
41 GrXferBarrierFlags renderPassXferBarriers,
42 GrLoadOp colorLoadOp,
44 const GrUserStencilSettings* stencil =
46#endif
47
48} // namespace sk_gpu_test
49
50#endif
GrPrimitiveType
Definition: GrTypesPriv.h:43
GrLoadOp
Definition: GrTypesPriv.h:155
GrSurfaceOrigin
Definition: GrTypes.h:147
GrXferBarrierFlags
SkBlendMode
Definition: SkBlendMode.h:38
Definition: GrCaps.h:57
FlutterSemanticsFlag flags
GrTextureProxy * GetTextureImageProxy(SkImage *image, GrRecordingContext *rContext)
Definition: ProxyUtils.cpp:32
GrSurfaceProxyView MakeTextureProxyViewFromData(GrDirectContext *dContext, GrRenderable renderable, GrSurfaceOrigin origin, GrCPixmap pixmap)
Definition: ProxyUtils.cpp:56
Renderable
Definition: GpuTypes.h:69
static const GrUserStencilSettings & kUnused