Flutter Engine
The Flutter Engine
Functions
SkSVGPattern.cpp File Reference
#include "modules/svg/include/SkSVGPattern.h"
#include "include/core/SkPicture.h"
#include "include/core/SkPictureRecorder.h"
#include "include/core/SkShader.h"
#include "include/core/SkTileMode.h"
#include "modules/svg/include/SkSVGRenderContext.h"
#include "modules/svg/include/SkSVGValue.h"

Go to the source code of this file.

Functions

template<typename T >
int inherit_if_needed (const SkTLazy< T > &src, SkTLazy< T > &dst)
 

Function Documentation

◆ inherit_if_needed()

template<typename T >
int inherit_if_needed ( const SkTLazy< T > &  src,
SkTLazy< T > &  dst 
)

Definition at line 44 of file SkSVGPattern.cpp.

44 {
45 if (!dst.isValid()) {
46 dst = src;
47 return 1;
48 }
49
50 return 0;
51}
dst
Definition: cp.py:12