コード例 #1
0
ファイル: GraphicsContext.cpp プロジェクト: caiolima/webkit
void GraphicsContext::setAlpha(float alpha)
{
    m_state.alpha = alpha;
    if (isRecording()) {
        m_displayListRecorder->updateState(m_state, GraphicsContextState::AlphaChange);
        return;
    }
    setPlatformAlpha(alpha);
}
コード例 #2
0
ファイル: GraphicsContext.cpp プロジェクト: caiolima/webkit
void GraphicsContext::applyState(const GraphicsContextState& state)
{
    setPlatformShadow(state.shadowOffset, state.shadowBlur, state.shadowColor);
    setPlatformStrokeThickness(state.strokeThickness);
    setPlatformTextDrawingMode(state.textDrawingMode);
    setPlatformStrokeColor(state.strokeColor);
    setPlatformFillColor(state.fillColor);
    setPlatformStrokeStyle(state.strokeStyle);
    setPlatformAlpha(state.alpha);
    setPlatformCompositeOperation(state.compositeOperator, state.blendMode);
    setPlatformShouldAntialias(state.shouldAntialias);
    setPlatformShouldSmoothFonts(state.shouldSmoothFonts);
}
コード例 #3
0
void GraphicsContext::setAlpha(float alpha)
{
    m_state.alpha = alpha;
    setPlatformAlpha(alpha);
}