Flutter Engine
The Flutter Engine
render_pipeline.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_LIB_GPU_RENDER_PIPELINE_H_
6#define FLUTTER_LIB_GPU_RENDER_PIPELINE_H_
7
8#include "flutter/lib/gpu/context.h"
9#include "flutter/lib/gpu/export.h"
10#include "flutter/lib/gpu/shader.h"
11#include "flutter/lib/ui/dart_wrapper.h"
13
14namespace flutter {
15namespace gpu {
16
17class RenderPipeline : public RefCountedDartWrappable<RenderPipeline> {
18 DEFINE_WRAPPERTYPEINFO();
19 FML_FRIEND_MAKE_REF_COUNTED(RenderPipeline);
20
21 public:
23 fml::RefPtr<flutter::gpu::Shader> fragment_shader);
24
25 ~RenderPipeline() override;
26
29
30 private:
32 fml::RefPtr<flutter::gpu::Shader> fragment_shader_;
33
34 FML_DISALLOW_COPY_AND_ASSIGN(RenderPipeline);
35};
36
37} // namespace gpu
38} // namespace flutter
39
40//----------------------------------------------------------------------------
41/// Exports
42///
43
44extern "C" {
45
48 Dart_Handle wrapper,
49 flutter::gpu::Context* gpu_context,
50 flutter::gpu::Shader* vertex_shader,
51 flutter::gpu::Shader* fragment_shader);
52
53} // extern "C"
54
55#endif // FLUTTER_LIB_GPU_RENDER_PIPELINE_H_
RenderPipeline(fml::RefPtr< flutter::gpu::Shader > vertex_shader, fml::RefPtr< flutter::gpu::Shader > fragment_shader)
void BindToPipelineDescriptor(impeller::ShaderLibrary &library, impeller::PipelineDescriptor &desc)
An immutable collection of shaders loaded from a shader bundle asset.
Definition: shader.h:23
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
#define FLUTTER_GPU_EXPORT
Definition: export.h:13
FLUTTER_GPU_EXPORT Dart_Handle InternalFlutterGpu_RenderPipeline_Initialize(Dart_Handle wrapper, flutter::gpu::Context *gpu_context, flutter::gpu::Shader *vertex_shader, flutter::gpu::Shader *fragment_shader)