Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Friends | List of all members
skgpu::graphite::PaintOptionsPriv Class Reference

#include <PaintOptionsPriv.h>

Public Types

using ProcessCombination = PaintOptions::ProcessCombination
 

Public Member Functions

void addColorFilter (sk_sp< PrecompileColorFilter > cf)
 
void setClipShaders (SkSpan< const sk_sp< PrecompileShader > > clipShaders)
 
int numCombinations () const
 
void buildCombinations (const KeyContext &keyContext, PipelineDataGatherer *gatherer, DrawTypeFlags drawTypes, bool withPrimitiveBlender, Coverage coverage, const ProcessCombination &processCombination) const
 

Friends

class PaintOptions
 

Detailed Description

Class that exposes methods in PaintOptions that are only intended for use internal to Skia. This class is purely a privileged window into PaintOptions. It should never have additional data members or virtual methods.

Definition at line 20 of file PaintOptionsPriv.h.

Member Typedef Documentation

◆ ProcessCombination

using skgpu::graphite::PaintOptionsPriv::ProcessCombination = PaintOptions::ProcessCombination

Definition at line 22 of file PaintOptionsPriv.h.

Member Function Documentation

◆ addColorFilter()

void skgpu::graphite::PaintOptionsPriv::addColorFilter ( sk_sp< PrecompileColorFilter cf)

Definition at line 330 of file PaintOptions.cpp.

330 {
331 fPaintOptions->addColorFilter(std::move(cf));
332}

◆ buildCombinations()

void skgpu::graphite::PaintOptionsPriv::buildCombinations ( const KeyContext keyContext,
PipelineDataGatherer gatherer,
DrawTypeFlags  drawTypes,
bool  withPrimitiveBlender,
Coverage  coverage,
const ProcessCombination processCombination 
) const
inline

Definition at line 34 of file PaintOptionsPriv.h.

40 {
41 fPaintOptions->buildCombinations(
42 keyContext, gatherer, drawTypes, withPrimitiveBlender, coverage, processCombination);
43 }

◆ numCombinations()

int skgpu::graphite::PaintOptionsPriv::numCombinations ( ) const
inline

Definition at line 30 of file PaintOptionsPriv.h.

30 {
31 return fPaintOptions->numCombinations();
32 }

◆ setClipShaders()

void skgpu::graphite::PaintOptionsPriv::setClipShaders ( SkSpan< const sk_sp< PrecompileShader > >  clipShaders)
inline

Definition at line 26 of file PaintOptionsPriv.h.

26 {
27 fPaintOptions->setClipShaders(std::move(clipShaders));
28 }

Friends And Related Function Documentation

◆ PaintOptions

friend class PaintOptions
friend

Definition at line 46 of file PaintOptionsPriv.h.


The documentation for this class was generated from the following files: