本文整理汇总了C++中SkDeque::push_back方法的典型用法代码示例。如果您正苦于以下问题:C++ SkDeque::push_back方法的具体用法?C++ SkDeque::push_back怎么用?C++ SkDeque::push_back使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SkDeque
的用法示例。
在下文中一共展示了SkDeque::push_back方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GraphicsContextPlatformPrivate
GraphicsContextPlatformPrivate(GraphicsContext* cg, PlatformGraphicsContext* pgc)
: mCG(cg)
, mPgc(pgc), mStateStack(sizeof(State)) {
State* state = (State*)mStateStack.push_back();
new (state) State();
mState = state;
}
示例2: ReadLayers
SkDeque* SkLayerRasterizer::ReadLayers(SkReadBuffer& buffer) {
int count = buffer.readInt();
SkDeque* layers = SkNEW_ARGS(SkDeque, (sizeof(SkLayerRasterizer_Rec)));
for (int i = 0; i < count; i++) {
SkLayerRasterizer_Rec* rec = (SkLayerRasterizer_Rec*)layers->push_back();
SkNEW_PLACEMENT(&rec->fPaint, SkPaint);
buffer.readPaint(&rec->fPaint);
buffer.readPoint(&rec->fOffset);
}
return layers;
}
示例3: EnqueueFunctionPtr
void JavaSharedClient::EnqueueFunctionPtr(void (*proc)(void* payload),
void* payload)
{
gFuncPtrQMutex.acquire();
FuncPtrRec* rec = (FuncPtrRec*)gFuncPtrQ.push_back();
rec->fProc = proc;
rec->fPayload = payload;
gFuncPtrQMutex.release();
gTimerClient->signalServiceFuncPtrQueue();
}
示例4: save
void save() {
State* newState = (State*)mStateStack.push_back();
new (newState) State(*mState);
mState = newState;
}