Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
DM::ViaMatrix Class Reference

#include <DMSrcSink.h>

Inheritance diagram for DM::ViaMatrix:
DM::Via DM::Sink

Public Member Functions

 ViaMatrix (SkMatrix, Sink *)
 
Result draw (const Src &, SkBitmap *, SkWStream *, SkString *) const override
 
- Public Member Functions inherited from DM::Via
 Via (Sink *sink)
 
const char * fileExtension () const override
 
bool serial () const override
 
SinkFlags flags () const override
 
void setColorSpace (sk_sp< SkColorSpace > colorSpace) override
 
- Public Member Functions inherited from DM::Sink
virtual ~Sink ()
 
virtual SkColorInfo colorInfo () const
 

Additional Inherited Members

- Protected Attributes inherited from DM::Via
std::unique_ptr< SinkfSink
 

Detailed Description

Definition at line 646 of file DMSrcSink.h.

Constructor & Destructor Documentation

◆ ViaMatrix()

DM::ViaMatrix::ViaMatrix ( SkMatrix  matrix,
Sink sink 
)

Definition at line 2475 of file DMSrcSink.cpp.

2475: Via(sink), fMatrix(matrix) {}
Via(Sink *sink)
Definition DMSrcSink.h:631

Member Function Documentation

◆ draw()

Result DM::ViaMatrix::draw ( const Src src,
SkBitmap bitmap,
SkWStream stream,
SkString log 
) const
overridevirtual

Implements DM::Sink.

Definition at line 2477 of file DMSrcSink.cpp.

2477 {
2478 SkMatrix matrix = fMatrix;
2479 SkISize size = auto_compute_translate(&matrix, src.size().width(), src.size().height());
2480 return draw_to_canvas(fSink.get(), bitmap, stream, log, size,
2481 [&](SkCanvas* canvas,
2482 Src::GraphiteTestContext* testContext) {
2483 canvas->concat(matrix);
2484 return src.draw(canvas, testContext);
2485 });
2486}
std::unique_ptr< Sink > fSink
Definition DMSrcSink.h:643
static void draw_to_canvas(SkCanvas *canvas, const SkImageInfo &info, void *pixels, size_t rowBytes, CodecSrc::DstColorType dstColorType, SkScalar left=0, SkScalar top=0)
static SkISize auto_compute_translate(SkMatrix *matrix, int srcW, int srcH)
unsigned useCenter Optional< SkMatrix > matrix
Definition SkRecords.h:258
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition switches.h:259
skiatest::graphite::GraphiteTestContext GraphiteTestContext
Definition DMSrcSink.h:93

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