xref: /aosp_15_r20/external/skia/tools/gpu/ganesh/AtlasTextOpTools.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 /*
2  * Copyright 2024 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_ganesh_AtlasTextOpPriv_DEFINED
9 #define skgpu_ganesh_AtlasTextOpPriv_DEFINED
10 
11 #include "src/gpu/ganesh/ops/GrOp.h"
12 
13 class SkPaint;
14 class SkFont;
15 class SkMatrix;
16 
17 namespace skgpu::ganesh {
18 class SurfaceDrawContext;
19 
20 class AtlasTextOpTools final {
21 public:
22     static GrOp::Owner CreateOp(SurfaceDrawContext*,
23                                 const SkPaint&,
24                                 const SkFont&,
25                                 const SkMatrix&,
26                                 const char* text,
27                                 int x,
28                                 int y);
29 
30 private:
31     AtlasTextOpTools();
32 };
33 
34 }  // namespace skgpu::ganesh
35 
36 #endif
37