Lines Matching refs:GrFragmentProcessor
20 bool GrFragmentProcessor::isEqual(const GrFragmentProcessor& that) const { in isEqual()
49 void GrFragmentProcessor::visitProxies(const std::function<void(GrSurfaceProxy*)>& func) { in visitProxies()
50 GrFragmentProcessor::TextureAccessIter iter(this); in visitProxies()
56 GrGLSLFragmentProcessor* GrFragmentProcessor::createGLSLInstance() const { in createGLSLInstance()
65 const GrFragmentProcessor::TextureSampler& GrFragmentProcessor::textureSampler(int i) const { in textureSampler()
70 void GrFragmentProcessor::addCoordTransform(const GrCoordTransform* transform) { in addCoordTransform()
76 bool GrFragmentProcessor::instantiate(GrResourceProvider* resourceProvider) const { in instantiate()
92 void GrFragmentProcessor::markPendingExecution() const { in markPendingExecution()
103 int GrFragmentProcessor::registerChildProcessor(std::unique_ptr<GrFragmentProcessor> child) { in registerChildProcessor()
114 bool GrFragmentProcessor::hasSameTransforms(const GrFragmentProcessor& that) const { in hasSameTransforms()
127 std::unique_ptr<GrFragmentProcessor> GrFragmentProcessor::MulChildByInputAlpha( in MulChildByInputAlpha()
128 std::unique_ptr<GrFragmentProcessor> fp) { in MulChildByInputAlpha()
135 std::unique_ptr<GrFragmentProcessor> GrFragmentProcessor::MulInputByChildAlpha( in MulInputByChildAlpha()
136 std::unique_ptr<GrFragmentProcessor> fp) { in MulInputByChildAlpha()
143 std::unique_ptr<GrFragmentProcessor> GrFragmentProcessor::PremulInput( in PremulInput()
144 std::unique_ptr<GrFragmentProcessor> fp) { in PremulInput()
148 std::unique_ptr<GrFragmentProcessor> fpPipeline[] = { GrPremulInputFragmentProcessor::Make(), in PremulInput()
150 return GrFragmentProcessor::RunInSeries(fpPipeline, 2); in PremulInput()
153 std::unique_ptr<GrFragmentProcessor> GrFragmentProcessor::SwizzleOutput( in SwizzleOutput()
154 std::unique_ptr<GrFragmentProcessor> fp, const GrSwizzle& swizzle) { in SwizzleOutput()
155 class SwizzleFragmentProcessor : public GrFragmentProcessor { in SwizzleOutput()
157 static std::unique_ptr<GrFragmentProcessor> Make(const GrSwizzle& swizzle) { in SwizzleOutput()
158 return std::unique_ptr<GrFragmentProcessor>(new SwizzleFragmentProcessor(swizzle)); in SwizzleOutput()
164 std::unique_ptr<GrFragmentProcessor> clone() const override { return Make(fSwizzle); } in SwizzleOutput()
190 bool onIsEqual(const GrFragmentProcessor& other) const override { in SwizzleOutput()
201 typedef GrFragmentProcessor INHERITED; in SwizzleOutput()
210 std::unique_ptr<GrFragmentProcessor> fpPipeline[] = { std::move(fp), in SwizzleOutput()
212 return GrFragmentProcessor::RunInSeries(fpPipeline, 2); in SwizzleOutput()
215 std::unique_ptr<GrFragmentProcessor> GrFragmentProcessor::MakeInputPremulAndMulByOutput( in MakeInputPremulAndMulByOutput()
216 std::unique_ptr<GrFragmentProcessor> fp) { in MakeInputPremulAndMulByOutput()
217 class PremulFragmentProcessor : public GrFragmentProcessor { in MakeInputPremulAndMulByOutput()
219 static std::unique_ptr<GrFragmentProcessor> Make( in MakeInputPremulAndMulByOutput()
220 std::unique_ptr<GrFragmentProcessor> processor) { in MakeInputPremulAndMulByOutput()
221 return std::unique_ptr<GrFragmentProcessor>( in MakeInputPremulAndMulByOutput()
227 std::unique_ptr<GrFragmentProcessor> clone() const override { in MakeInputPremulAndMulByOutput()
232 PremulFragmentProcessor(std::unique_ptr<GrFragmentProcessor> processor) in MakeInputPremulAndMulByOutput()
253 bool onIsEqual(const GrFragmentProcessor&) const override { return true; } in MakeInputPremulAndMulByOutput()
255 static OptimizationFlags OptFlags(const GrFragmentProcessor* inner) { in MakeInputPremulAndMulByOutput()
273 typedef GrFragmentProcessor INHERITED; in MakeInputPremulAndMulByOutput()
283 std::unique_ptr<GrFragmentProcessor> GrFragmentProcessor::OverrideInput( in OverrideInput()
284 std::unique_ptr<GrFragmentProcessor> fp, const SkPMColor4f& color) { in OverrideInput()
285 class ReplaceInputFragmentProcessor : public GrFragmentProcessor { in OverrideInput()
287 static std::unique_ptr<GrFragmentProcessor> Make(std::unique_ptr<GrFragmentProcessor> child, in OverrideInput()
289 return std::unique_ptr<GrFragmentProcessor>( in OverrideInput()
295 std::unique_ptr<GrFragmentProcessor> clone() const override { in OverrideInput()
314 const GrFragmentProcessor& fp) override { in OverrideInput()
331 ReplaceInputFragmentProcessor(std::unique_ptr<GrFragmentProcessor> child, in OverrideInput()
338 static OptimizationFlags OptFlags(const GrFragmentProcessor* child, in OverrideInput()
354 bool onIsEqual(const GrFragmentProcessor& that) const override { in OverrideInput()
364 typedef GrFragmentProcessor INHERITED; in OverrideInput()
373 std::unique_ptr<GrFragmentProcessor> GrFragmentProcessor::RunInSeries( in RunInSeries()
374 std::unique_ptr<GrFragmentProcessor>* series, int cnt) { in RunInSeries()
375 class SeriesFragmentProcessor : public GrFragmentProcessor { in RunInSeries()
377 static std::unique_ptr<GrFragmentProcessor> Make( in RunInSeries()
378 std::unique_ptr<GrFragmentProcessor>* children, int cnt) { in RunInSeries()
379 return std::unique_ptr<GrFragmentProcessor>(new SeriesFragmentProcessor(children, cnt)); in RunInSeries()
384 std::unique_ptr<GrFragmentProcessor> clone() const override { in RunInSeries()
385 SkSTArray<4, std::unique_ptr<GrFragmentProcessor>> children(this->numChildProcessors()); in RunInSeries()
415 SeriesFragmentProcessor(std::unique_ptr<GrFragmentProcessor>* children, int cnt) in RunInSeries()
423 static OptimizationFlags OptFlags(std::unique_ptr<GrFragmentProcessor>* children, int cnt) { in RunInSeries()
432 bool onIsEqual(const GrFragmentProcessor&) const override { return true; } in RunInSeries()
443 typedef GrFragmentProcessor INHERITED; in RunInSeries()
457 SkTArray<std::unique_ptr<GrFragmentProcessor>> replacementSeries; in RunInSeries()
461 std::unique_ptr<GrFragmentProcessor> colorFP( in RunInSeries()
479 GrFragmentProcessor::Iter::Iter(const GrPipeline& pipeline) { in Iter()
485 GrFragmentProcessor::Iter::Iter(const GrPaint& paint) { in Iter()
494 const GrFragmentProcessor* GrFragmentProcessor::Iter::next() { in next()
498 const GrFragmentProcessor* back = fFPStack.back(); in next()
508 GrFragmentProcessor::TextureSampler::TextureSampler(sk_sp<GrTextureProxy> proxy, in TextureSampler()
513 GrFragmentProcessor::TextureSampler::TextureSampler(sk_sp<GrTextureProxy> proxy, in TextureSampler()
519 void GrFragmentProcessor::TextureSampler::reset(sk_sp<GrTextureProxy> proxy, in reset()
526 void GrFragmentProcessor::TextureSampler::reset(sk_sp<GrTextureProxy> proxy, in reset()