Lines Matching refs:ClipStack
8 #include "src/gpu/v1/ClipStack.h"
211 GrFPResult analytic_clip_fp(const skgpu::v1::ClipStack::Element& e,
243 const skgpu::v1::ClipStack::Element& e,
260 const skgpu::v1::ClipStack::Element& e,
309 const skgpu::v1::ClipStack::Element** elements,
333 using Uploader = GrTDeferredProxyUploader<SkTArray<skgpu::v1::ClipStack::Element>>;
375 const skgpu::v1::ClipStack::Element** elements,
384 const skgpu::v1::ClipStack::Element& e = *(elements[i]);
402 class ClipStack::Draw {
436 // ClipStack::Element
438 ClipStack::RawElement::RawElement(const SkMatrix& localToDevice, const GrShape& shape,
451 void ClipStack::RawElement::markInvalid(const SaveRecord& current) {
456 void ClipStack::RawElement::restoreValid(const SaveRecord& current) {
462 bool ClipStack::RawElement::contains(const Draw& d) const {
474 bool ClipStack::RawElement::contains(const SaveRecord& s) const {
485 bool ClipStack::RawElement::contains(const RawElement& e) const {
513 void ClipStack::RawElement::simplify(const SkIRect& deviceBounds, bool forceAA) {
598 bool ClipStack::RawElement::combine(const RawElement& other, const SaveRecord& current) {
677 void ClipStack::RawElement::updateForElement(RawElement* added, const SaveRecord& current) {
712 ClipStack::ClipState ClipStack::RawElement::clipType() const {
740 // ClipStack::Mask
742 ClipStack::Mask::Mask(const SaveRecord& current, const SkIRect& drawBounds)
761 bool ClipStack::Mask::appliesToDraw(const SaveRecord& current, const SkIRect& drawBounds) const {
768 void ClipStack::Mask::invalidate(GrProxyProvider* proxyProvider) {
777 // ClipStack::SaveRecord
779 ClipStack::SaveRecord::SaveRecord(const SkIRect& deviceBounds)
791 ClipStack::SaveRecord::SaveRecord(const SaveRecord& prior,
811 uint32_t ClipStack::SaveRecord::genID() const {
824 ClipStack::ClipState ClipStack::SaveRecord::state() const {
832 bool ClipStack::SaveRecord::contains(const ClipStack::Draw& draw) const {
836 bool ClipStack::SaveRecord::contains(const ClipStack::RawElement& element) const {
840 void ClipStack::SaveRecord::removeElements(RawElement::Stack* elements) {
846 void ClipStack::SaveRecord::restoreElements(RawElement::Stack* elements) {
861 void ClipStack::SaveRecord::invalidateMasks(GrProxyProvider* proxyProvider,
872 void ClipStack::SaveRecord::reset(const SkIRect& bounds) {
882 void ClipStack::SaveRecord::addShader(sk_sp<SkShader> shader) {
895 bool ClipStack::SaveRecord::addElement(RawElement&& toAdd, RawElement::Stack* elements) {
992 bool ClipStack::SaveRecord::appendElement(RawElement&& toAdd, RawElement::Stack* elements) {
1080 // Changing this will prompt ClipStack to invalidate any masks associated with this record.
1085 void ClipStack::SaveRecord::replaceWithElement(RawElement&& toAdd, RawElement::Stack* elements) {
1111 // ClipStack
1115 // SaveRecord::Stack (this conveniently keeps the size of ClipStack manageable). The max
1135 ClipStack::ClipStack(const SkIRect& deviceBounds, const SkMatrixProvider* matrixProvider,
1148 ClipStack::~ClipStack() {
1159 void ClipStack::save() {
1164 void ClipStack::restore() {
1184 SkIRect ClipStack::getConservativeBounds() const {
1202 GrClip::PreClipResult ClipStack::preApply(const SkRect& bounds, GrAA aa) const {
1256 GrClip::Effect ClipStack::apply(GrRecordingContext* rContext,
1505 ClipStack::SaveRecord& ClipStack::writableSaveRecord(bool* wasDeferred) {
1519 void ClipStack::clipShader(sk_sp<SkShader> shader) {
1530 void ClipStack::replaceClip(const SkIRect& rect) {
1545 void ClipStack::clip(RawElement&& element) {
1593 GrFPResult ClipStack::GetSWMaskFP(GrRecordingContext* context, Mask::Stack* masks,