void PlatformContextSkia::restore() { if (!m_state->m_imageBufferClip.empty()) { applyClipFromImage(m_state->m_clip, m_state->m_imageBufferClip); canvas()->restore(); } m_stateStack.removeLast(); m_state = &m_stateStack.last(); // Restore our native canvas. canvas()->restore(); }
void PlatformContextSkia::restore() { #if defined(__linux__) || PLATFORM(WIN_OS) if (!m_state->m_imageBufferClip.empty()) { applyClipFromImage(m_state->m_clip, m_state->m_imageBufferClip); canvas()->restore(); } #endif m_stateStack.removeLast(); m_state = &m_stateStack.last(); // Restore our native canvas. canvas()->restore(); }
void PlatformContextSkia::restore() { if (!m_state->m_imageBufferClip.empty()) { applyClipFromImage(m_state->m_clip, m_state->m_imageBufferClip); m_canvas->restore(); } m_stateStack.removeLast(); m_state = &m_stateStack.last(); DeferredSaveState savedState = m_saveStateStack.last(); m_saveStateStack.removeLast(); m_deferredSaveFlags = savedState.m_flags; m_canvas->restoreToCount(savedState.m_restoreCount); }
void PlatformContextSkiaJava::restore() { if (!m_state->m_imageBufferClip.empty()) { applyClipFromImage(m_state->m_clip, m_state->m_imageBufferClip); canvas()->restore(); } if (!m_state->m_antiAliasClipPaths.isEmpty()) applyAntiAliasedClipPaths(m_state->m_antiAliasClipPaths); m_stateStack.removeLast(); m_state = &m_stateStack.last(); // Restore our native canvas. canvas()->restore(); }