DescriptionThis CL actually has two methods of getting the top genID from SkClipStack. One is through SkClipStack::getTopmostGenID(). The other is using the fGenID field of the Clip object returned by the iterator. The method that actually implements that technique lives in an as yet undelivered file and is:
int32_t get_topmost_genID(const SkClipStack& clip) {
SkClipStack::Iter iter(clip, SkClipStack::Iter::kTop_IterStart);
const SkClipStack::Iter::Clip* temp = iter.prev();
if (NULL == temp) {
return SkClipStack::kInvalidGenID;
}
return temp->fGenID;
}
Patch Set 1 #
MessagesTotal messages: 3
|