Flutter Engine
The Flutter Engine
third_party
skia
tools
gpu
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
11
#include "
include/private/gpu/ganesh/GrTypesPriv.h
"
12
#include "
src/gpu/ganesh/GrImageInfo.h
"
13
#include "
src/gpu/ganesh/GrPipeline.h
"
14
#include "
src/gpu/ganesh/GrTextureProxy.h
"
15
16
class
GrDirectContext
;
17
class
GrProgramInfo
;
18
class
GrCPixmap
;
19
20
namespace
sk_gpu_test
{
21
22
/** Returns the proxy backing an image if it is texture backed, otherwise nullptr. */
23
GrTextureProxy
*
GetTextureImageProxy
(
SkImage
*,
GrRecordingContext
*);
24
25
/** Makes a texture proxy containing the passed in color data. */
26
GrSurfaceProxyView
MakeTextureProxyViewFromData
(
GrDirectContext
*,
27
GrRenderable
,
28
GrSurfaceOrigin
,
29
GrCPixmap
pixmap);
30
31
#if defined(SK_GANESH)
32
GrProgramInfo
* CreateProgramInfo(
const
GrCaps
*,
33
SkArenaAlloc
*,
34
const
GrSurfaceProxyView
& writeView,
35
bool
usesMSAASurface,
36
GrAppliedClip
&&,
37
const
GrDstProxyView
&,
38
GrGeometryProcessor
*,
39
SkBlendMode
,
40
GrPrimitiveType
,
41
GrXferBarrierFlags
renderPassXferBarriers,
42
GrLoadOp
colorLoadOp,
43
GrPipeline::InputFlags
flags
=
GrPipeline::InputFlags::kNone
,
44
const
GrUserStencilSettings
* stencil =
45
&
GrUserStencilSettings::kUnused
);
46
#endif
47
48
}
// namespace sk_gpu_test
49
50
#endif
GrImageInfo.h
GrPipeline.h
GrTextureProxy.h
GrTypesPriv.h
GrPrimitiveType
GrPrimitiveType
Definition:
GrTypesPriv.h:43
GrLoadOp
GrLoadOp
Definition:
GrTypesPriv.h:155
GrSurfaceOrigin
GrSurfaceOrigin
Definition:
GrTypes.h:147
GrXferBarrierFlags
GrXferBarrierFlags
Definition:
GrXferProcessor.h:45
SkBlendMode
SkBlendMode
Definition:
SkBlendMode.h:38
GrAppliedClip
Definition:
GrAppliedClip.h:94
GrCPixmap
Definition:
GrPixmap.h:119
GrCaps
Definition:
GrCaps.h:57
GrDirectContext
Definition:
GrDirectContext.h:60
GrDstProxyView
Definition:
GrDstProxyView.h:20
GrGeometryProcessor
Definition:
GrGeometryProcessor.h:53
GrPipeline::InputFlags
InputFlags
Definition:
GrPipeline.h:43
GrPipeline::InputFlags::kNone
@ kNone
GrProgramInfo
Definition:
GrProgramInfo.h:17
GrRecordingContext
Definition:
GrRecordingContext.h:42
GrSurfaceProxyView
Definition:
GrSurfaceProxyView.h:34
GrTextureProxy
Definition:
GrTextureProxy.h:34
SkArenaAlloc
Definition:
SkArenaAlloc.h:105
SkImage
Definition:
SkImage.h:272
flags
FlutterSemanticsFlag flags
Definition:
fl_accessible_node.cc:106
sk_gpu_test
Definition:
gm_bindings.cpp:339
sk_gpu_test::GetTextureImageProxy
GrTextureProxy * GetTextureImageProxy(SkImage *image, GrRecordingContext *rContext)
Definition:
ProxyUtils.cpp:32
sk_gpu_test::MakeTextureProxyViewFromData
GrSurfaceProxyView MakeTextureProxyViewFromData(GrDirectContext *dContext, GrRenderable renderable, GrSurfaceOrigin origin, GrCPixmap pixmap)
Definition:
ProxyUtils.cpp:56
skgpu::Renderable
Renderable
Definition:
GpuTypes.h:69
GrUserStencilSettings
Definition:
GrUserStencilSettings.h:112
GrUserStencilSettings::kUnused
static const GrUserStencilSettings & kUnused
Definition:
GrUserStencilSettings.h:208
Generated on Sun Jun 23 2024 21:56:50 for Flutter Engine by
1.9.4