• Home
  • Raw
  • Download

Lines Matching refs:GrFragmentProcessor

27 class GrFragmentProcessor : public GrProcessor {
39 static std::unique_ptr<GrFragmentProcessor> MulChildByInputAlpha(
40 std::unique_ptr<GrFragmentProcessor> child);
48 static std::unique_ptr<GrFragmentProcessor> MulInputByChildAlpha(
49 std::unique_ptr<GrFragmentProcessor> child);
57 static std::unique_ptr<GrFragmentProcessor> MakeInputPremulAndMulByOutput(
58 std::unique_ptr<GrFragmentProcessor>);
65 static std::unique_ptr<GrFragmentProcessor> OverrideInput(std::unique_ptr<GrFragmentProcessor>,
73 static std::unique_ptr<GrFragmentProcessor> PremulInput(std::unique_ptr<GrFragmentProcessor>);
79 static std::unique_ptr<GrFragmentProcessor> SwizzleOutput(std::unique_ptr<GrFragmentProcessor>,
86 static std::unique_ptr<GrFragmentProcessor> ClampPremulOutput(
87 std::unique_ptr<GrFragmentProcessor>);
97 static std::unique_ptr<GrFragmentProcessor> RunInSeries(std::unique_ptr<GrFragmentProcessor>[],
104 virtual std::unique_ptr<GrFragmentProcessor> clone() const = 0;
131 GrFragmentProcessor& childProcessor(int index) { return *fChildProcessors[index]; } in childProcessor()
132 const GrFragmentProcessor& childProcessor(int index) const { return *fChildProcessors[index]; } in childProcessor()
205 bool isEqual(const GrFragmentProcessor& that) const;
244 using FPCRange = CIterRange<GrFragmentProcessor>;
248 using CountFn = int (GrFragmentProcessor::*)() const;
253 using GetFn = Item& (GrFragmentProcessor::*)(int);
256 using GetFn = const Item& (GrFragmentProcessor::*)(int) const;
273 &GrFragmentProcessor::numCoordTransforms,
274 &GrFragmentProcessor::coordTransform>;
284 &GrFragmentProcessor::numTextureSamplers,
285 &GrFragmentProcessor::textureSampler>;
301 using FPTextureSamplerRange = FPItemRange<const GrFragmentProcessor, TextureSamplerIter>;
306 FPItemIter<GrCoordTransform, &GrFragmentProcessor::numCoordTransforms,
307 &GrFragmentProcessor::coordTransform>;
309 using FPCoordTransformRange = FPItemRange<GrFragmentProcessor, NonConstCoordTransformIter>;
356 GrFragmentProcessor(ClassID classID, OptimizationFlags optimizationFlags)
366 static OptimizationFlags ProcessorOptimizationFlags(const GrFragmentProcessor* fp) {
375 static SkPMColor4f ConstantOutputForConstantInput(const GrFragmentProcessor& fp,
409 int registerChildProcessor(std::unique_ptr<GrFragmentProcessor> child);
449 virtual bool onIsEqual(const GrFragmentProcessor&) const = 0;
453 bool hasSameTransforms(const GrFragmentProcessor&) const;
467 SkSTArray<1, std::unique_ptr<GrFragmentProcessor>, true> fChildProcessors;
477 class GrFragmentProcessor::TextureSampler {
522 const GrFragmentProcessor::TextureSampler& GrFragmentProcessor::IthTextureSampler(int i) {
528 GR_MAKE_BITFIELD_OPS(GrFragmentProcessor::OptimizationFlags)
532 template <typename FP> class GrFragmentProcessor::IterBase {
554 template <typename FP> void GrFragmentProcessor::IterBase<FP>::increment() {
565 class GrFragmentProcessor::Iter : public IterBase<GrFragmentProcessor> {
567 explicit Iter(GrFragmentProcessor& fp) : IterBase(fp) {}
576 class GrFragmentProcessor::CIter : public IterBase<const GrFragmentProcessor> {
578 explicit CIter(const GrFragmentProcessor& fp) : IterBase(fp) {}
590 template <typename Src> class GrFragmentProcessor::CIterRange {
602 template <typename Item, GrFragmentProcessor::CountFn Count, GrFragmentProcessor::GetFn<Item> Get>
603 class GrFragmentProcessor::FPItemIter {
607 std::pair<Item&, const GrFragmentProcessor&> operator*() const {
622 template <typename Item, GrFragmentProcessor::CountFn Count, GrFragmentProcessor::GetFn<Item> Get>
624 GrFragmentProcessor::FPItemIter<Item, Count, Get>::FPItemIter(Src& s) : fFPIter(s), fIndex(-1) {
630 template <typename Item, GrFragmentProcessor::CountFn Count, GrFragmentProcessor::GetFn<Item> Get>
631 GrFragmentProcessor::FPItemIter<Item, Count, Get>&
632 GrFragmentProcessor::FPItemIter<Item, Count, Get>::operator++() {
644 template <typename Src, typename ItemIter> class GrFragmentProcessor::FPItemRange {