Flutter Engine
The Flutter Engine
third_party
skia
tools
text
gpu
TextBlobTools.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2024 Google LLC
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#include "
tools/text/gpu/TextBlobTools.h
"
9
10
#include "
src/text/gpu/SubRunContainer.h
"
11
#include "
src/text/gpu/TextBlob.h
"
12
13
namespace
sktext::gpu
{
14
15
const
AtlasSubRun
*
TextBlobTools::FirstSubRun
(
const
TextBlob
* blob) {
16
SkASSERT
(blob);
17
if
(blob->fSubRuns->fSubRuns.isEmpty()) {
18
return
nullptr
;
19
}
20
return
blob->fSubRuns->fSubRuns.front().testingOnly_atlasSubRun();
21
}
22
23
}
// namespace sktext::gpu
SkASSERT
#define SkASSERT(cond)
Definition:
SkAssert.h:116
SubRunContainer.h
TextBlobTools.h
TextBlob.h
sktext::gpu::AtlasSubRun
Definition:
SubRunContainer.h:82
sktext::gpu::TextBlobTools::FirstSubRun
static const AtlasSubRun * FirstSubRun(const TextBlob *)
Definition:
TextBlobTools.cpp:15
sktext::gpu::TextBlob
Definition:
TextBlob.h:54
sktext::gpu
Definition:
SkCanvas.h:81
Generated on Sun Jun 23 2024 21:56:51 for Flutter Engine by
1.9.4