Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
AutoTmpPath Class Reference

Public Member Functions

 AutoTmpPath (const SkPath &src, SkPath **dst)
 
 ~AutoTmpPath ()
 

Detailed Description

Definition at line 1409 of file SkStroke.cpp.

Constructor & Destructor Documentation

◆ AutoTmpPath()

AutoTmpPath::AutoTmpPath ( const SkPath src,
SkPath **  dst 
)
inline

Definition at line 1411 of file SkStroke.cpp.

1411 : fSrc(src) {
1412 if (&src == *dst) {
1413 *dst = &fTmpDst;
1414 fSwapWithSrc = true;
1415 } else {
1416 (*dst)->reset();
1417 fSwapWithSrc = false;
1418 }
1419 }
dst
Definition: cp.py:12

◆ ~AutoTmpPath()

AutoTmpPath::~AutoTmpPath ( )
inline

Definition at line 1421 of file SkStroke.cpp.

1421 {
1422 if (fSwapWithSrc) {
1423 fTmpDst.swap(*const_cast<SkPath*>(&fSrc));
1424 }
1425 }
Definition: SkPath.h:59
void swap(SkPath &other)
Definition: SkPath.cpp:219

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