Flutter Engine
The Flutter Engine
Functions
SkTextBlob.cpp File Reference
#include "include/core/SkTextBlob.h"
#include "include/core/SkData.h"
#include "include/core/SkMaskFilter.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPathEffect.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRSXform.h"
#include "include/private/base/SkAlign.h"
#include "include/private/base/SkFloatingPoint.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkSpan_impl.h"
#include "include/private/base/SkTo.h"
#include "src/base/SkSafeMath.h"
#include "src/base/SkTLazy.h"
#include "src/core/SkFontPriv.h"
#include "src/core/SkGlyph.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkStrikeSpec.h"
#include "src/core/SkTextBlobPriv.h"
#include "src/core/SkWriteBuffer.h"
#include "src/text/GlyphRun.h"
#include <algorithm>
#include <atomic>
#include <limits>
#include <new>
#include <vector>

Go to the source code of this file.

Functions

static uint32_t next_id ()
 
static SkRect map_quad_to_rect (const SkRSXform &xform, const SkRect &rect)
 

Function Documentation

◆ map_quad_to_rect()

static SkRect map_quad_to_rect ( const SkRSXform xform,
const SkRect rect 
)
static

Definition at line 275 of file SkTextBlob.cpp.

275 {
276 return SkMatrix().setRSXform(xform).mapRect(rect);
277}
SkMatrix & setRSXform(const SkRSXform &rsxForm)
Definition: SkMatrix.cpp:420
bool mapRect(SkRect *dst, const SkRect &src, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes) const
Definition: SkMatrix.cpp:1141
sk_sp< SkBlender > blender SkRect rect
Definition: SkRecords.h:350

◆ next_id()

static uint32_t next_id ( )
static

Definition at line 146 of file SkTextBlob.cpp.

146 {
147 static std::atomic<uint32_t> nextID{1};
148 uint32_t id;
149 do {
150 id = nextID.fetch_add(1, std::memory_order_relaxed);
151 } while (id == SK_InvalidGenID);
152 return id;
153}
static constexpr uint32_t SK_InvalidGenID
Definition: SkTypes.h:192
const uintptr_t id