Definition at line 135 of file skia.py.
◆ __init__()
def skia.SkSpan_SynthProvider.__init__ |
( |
|
self, |
|
|
|
valobj, |
|
|
|
dict |
|
) |
| |
Definition at line 137 of file skia.py.
137 def __init__(self, valobj, dict):
138 self.valobj = valobj
139
◆ get_child_at_index()
def skia.SkSpan_SynthProvider.get_child_at_index |
( |
|
self, |
|
|
|
index |
|
) |
| |
Definition at line 155 of file skia.py.
155 def get_child_at_index(self, index):
156 if index < 0:
157 return None
158 if index >= self.num_children():
159 return None
160
161 try:
162 offset = index * self.dataSize
163 return self.fPtr.CreateChildAtOffset('[' + str(index) + ']',
164 offset, self.dataType)
165 except:
166 return None
167
◆ get_child_index()
def skia.SkSpan_SynthProvider.get_child_index |
( |
|
self, |
|
|
|
name |
|
) |
| |
Definition at line 149 of file skia.py.
149 def get_child_index(self, name):
150 try:
151 return int(name.lstrip(
'[').rstrip(
']'))
152 except:
153 return -1
154
◆ has_children()
def skia.SkSpan_SynthProvider.has_children |
( |
|
self | ) |
|
Definition at line 177 of file skia.py.
177 def has_children(self):
178 return True
179
180
181
◆ num_children()
def skia.SkSpan_SynthProvider.num_children |
( |
|
self | ) |
|
Definition at line 140 of file skia.py.
140 def num_children(self):
141 try:
142 count = self.fSize.GetValueAsSigned(0)
143 count =
max(count, 0)
144 count =
min(count, 10000)
145 return count
146 except:
147 return 0
148
static float max(float r, float g, float b)
static float min(float r, float g, float b)
◆ update()
def skia.SkSpan_SynthProvider.update |
( |
|
self | ) |
|
Definition at line 168 of file skia.py.
169 try:
170 self.fPtr = self.valobj.GetChildMemberWithName('fPtr')
171 self.fSize = self.valobj.GetChildMemberWithName('fSize')
172 self.dataType = self.fPtr.
GetType().GetPointeeType()
173 self.dataSize = self.dataType.GetByteSize()
174 except:
175 pass
176
static Dart_TypedData_Type GetType(intptr_t class_id)
◆ dataSize
skia.SkSpan_SynthProvider.dataSize |
◆ dataType
skia.SkSpan_SynthProvider.dataType |
◆ fPtr
skia.SkSpan_SynthProvider.fPtr |
◆ fSize
skia.SkSpan_SynthProvider.fSize |
◆ valobj
skia.SkSpan_SynthProvider.valobj |
The documentation for this class was generated from the following file:
- third_party/skia/platform_tools/debugging/lldb/skia.py