1 // Copyright 2021 Google LLC. 2 #ifndef Formatter_DEFINED 3 #define Formatter_DEFINED 4 5 #include "experimental/sktext/include/Processor.h" 6 namespace skia { 7 namespace text { 8 9 class Formatter { 10 11 public: Formatter(Processor * processor,TextFormatStyle formatStyle)12 Formatter(Processor* processor, TextFormatStyle formatStyle) : fProcessor(processor), fFormatStyle(formatStyle) { } 13 bool process(); 14 15 private: 16 Processor* fProcessor; 17 TextFormatStyle fFormatStyle; 18 }; 19 } // namespace text 20 } // namespace skia 21 #endif 22