Flutter Engine
The Flutter Engine
Macros | Enumerations | Functions | Variables
SkPictureRecord.cpp File Reference
#include "src/core/SkPictureRecord.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkImageFilter.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPoint3.h"
#include "include/core/SkRRect.h"
#include "include/core/SkRSXform.h"
#include "include/core/SkRect.h"
#include "include/core/SkRegion.h"
#include "include/core/SkShader.h"
#include "include/core/SkSurface.h"
#include "include/core/SkTextBlob.h"
#include "include/private/base/SkPoint_impl.h"
#include "include/private/base/SkTo.h"
#include "include/private/chromium/Slug.h"
#include "src/core/SkCanvasPriv.h"
#include "src/core/SkDrawShadowInfo.h"
#include "src/core/SkMatrixPriv.h"
#include "src/core/SkSamplingPriv.h"
#include "src/utils/SkPatchUtils.h"
#include <utility>

Go to the source code of this file.

Macros

#define HEAP_BLOCK_SIZE   4096
 

Enumerations

enum  { kNoInitialSave = -1 }
 

Functions

template<typename T >
static bool equals (T *a, T *b)
 
template<>
bool equals (SkDrawable *a, SkDrawable *b)
 
template<typename T >
static int find_or_append (TArray< sk_sp< T > > &array, T *obj)
 

Variables

static int const kUInt32Size = 4
 

Macro Definition Documentation

◆ HEAP_BLOCK_SIZE

#define HEAP_BLOCK_SIZE   4096

Definition at line 39 of file SkPictureRecord.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kNoInitialSave 

Definition at line 41 of file SkPictureRecord.cpp.

41 {
42 // just need a value that save or getSaveCount would never return
43 kNoInitialSave = -1,
44};
@ kNoInitialSave

Function Documentation

◆ equals() [1/2]

template<>
bool equals ( SkDrawable a,
SkDrawable b 
)

Definition at line 835 of file SkPictureRecord.cpp.

835 {
836 // SkDrawable's generationID is not a stable unique identifier.
837 return a == b;
838}
static bool b
struct MyStruct a[10]

◆ equals() [2/2]

template<typename T >
static bool equals ( T a,
T b 
)
static

Definition at line 832 of file SkPictureRecord.cpp.

832{ return a->uniqueID() == b->uniqueID(); }

◆ find_or_append()

template<typename T >
static int find_or_append ( TArray< sk_sp< T > > &  array,
T obj 
)
static

Definition at line 841 of file SkPictureRecord.cpp.

841 {
842 for (int i = 0; i < array.size(); i++) {
843 if (equals(array[i].get(), obj)) {
844 return i;
845 }
846 }
847
848 array.push_back(sk_ref_sp(obj));
849
850 return array.size() - 1;
851}
static bool equals(T *a, T *b)
sk_sp< T > sk_ref_sp(T *obj)
Definition: SkRefCnt.h:381
int size() const
Definition: SkTArray.h:421
const myers::Point & get(const myers::Segment &)

Variable Documentation

◆ kUInt32Size

int const kUInt32Size = 4
static

Definition at line 47 of file SkPictureRecord.cpp.