• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 Google LLC
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 skgpu_graphite_render_BitmapTextRenderStep_DEFINED
9 #define skgpu_graphite_render_BitmapTextRenderStep_DEFINED
10 
11 #include "src/gpu/graphite/Renderer.h"
12 
13 namespace skgpu::graphite {
14 
15 class BitmapTextRenderStep final : public RenderStep {
16 public:
17     BitmapTextRenderStep();
18 
19     ~BitmapTextRenderStep() override;
20 
21     std::string vertexSkSL() const override;
22     std::string texturesAndSamplersSkSL(const ResourceBindingRequirements&,
23                                         int* nextBindingIndex) const override;
24     const char* fragmentCoverageSkSL() const override;
25 
26     void writeVertices(DrawWriter*, const DrawParams&, int ssboIndex) const override;
27     void writeUniformsAndTextures(const DrawParams&, PipelineDataGatherer*) const override;
28 
29 private:
30 };
31 
32 }  // namespace skgpu::graphite
33 
34 #endif // skgpu_graphite_render_BitmapTextRenderStep_DEFINED
35