Lines Matching refs:this

4  * Use of this source code is governed by a BSD-style license that can be
43 * Return ImageInfo for this device. If the canvas is not backed by pixels
49 * Return SurfaceProps for this device.
55 SkIRect bounds() const { return SkIRect::MakeWH(this->width(), this->height()); }
64 *bounds = SkMatrixPriv::MapRect(fDeviceToGlobal, SkRect::Make(this->bounds())).roundOut();
69 this->getGlobalBounds(&bounds);
74 * Returns the bounding box of the current clip, in this device's
76 * draws unless the clip is further modified (at which point this will
79 SkIRect devClipBounds() const { return this->onDevClipBounds(); }
82 return this->imageInfo().width();
86 return this->imageInfo().height();
90 return this->imageInfo().isOpaque();
96 * Try to get write-access to the pixels behind the device. If successful, this returns true
105 * Try to get read-only-access to the pixels behind the device. If successful, this returns
113 * Return the device's coordinate space transform: this maps from the device's coordinate space
120 * device space) into this device's coordinate space.
130 * Returns true when this device's pixel grid is axis aligned with the global coordinate space,
135 * Get the transformation from this device's coordinate system to the provided device space.
136 * This transform can be used to draw this device into the provided device, such that once
137 * that device is drawn to the root device, the net effect will be that this device's contents
151 const SkMatrixProvider& asMatrixProvider() const { return *this; }
153 void save() { this->onSave(); }
155 this->onRestore();
156 this->setGlobalCTM(ctm);
159 this->onRestore();
160 this->setLocalToDevice(localToDevice);
163 this->onClipRect(rect, op, aa);
166 this->onClipRRect(rrect, op, aa);
169 this->onClipPath(path, op, aa);
172 sh = as_SB(sh)->makeWithCTM(this->localToDevice());
176 this->onClipShader(std::move(sh));
179 this->onClipRegion(region, op);
182 this->onReplaceClip(rect);
186 return this->onClipIsWideOpen();
248 /** By the time this is called we know that abs(sweepAngle) is in the range [0, 360). */
261 * may do this to implement helpers such as drawOval, by placing a temp
307 * onCreateDevice on this device with kNeverTile_TileExpectation.
310 * from the input device to this device. The provided SkPaint cannot have a mask filter or
316 * Draw the special image's subset to this device, subject to the given matrix transform instead
323 * Evaluate 'filter' and draw the final output into this device using 'paint'. The 'mapping'
325 * and the layer-to-device space transform that is used to draw the result into this device.
326 * Since 'mapping' fully specifies the transform, this draw function ignores the current
341 // Snap the 'subset' contents from this device, possibly as a read-only view. If 'forceCopy'
358 * This is explicitly asserted in readPixels(), the public way to call this.
366 * This is explicitly asserted in writePixelsDirect(), the public way to call this.
394 * preview of how the new device will be composed with its creator device (this).
396 * The subclass may be handed this device in drawDevice(), so it must always return
430 // 'localToDevice', i.e. what geometry drawn into this device will be transformed with).
445 SkAssertResult(this->setDeviceCoordinateSystem(SkM44(), globalCTM, x, y));
456 SkMarkerStack* fMarkerStack = nullptr; // does not own this, set in setMarkerStack()
479 // this fails if we enable this assert: DiscardableImageMapTest.GetDiscardableImagesInRectMaxImage
482 this->setOrigin(SkM44(), bounds.left(), bounds.top());
483 this->resetClipStack();
488 this->privateResize(bounds.width(), bounds.height());
489 this->setOrigin(SkM44(), bounds.left(), bounds.top());
490 this->resetClipStack();
504 bool onClipIsAA() const override { return this->clip().fIsAA; }
506 return this->clip().fIsRect &&
507 this->onDevClipBounds() == this->bounds();
510 rgn->setRect(this->onDevClipBounds());
513 SkIRect onDevClipBounds() const override { return this->clip().fClipBounds; }
559 fClipStack.emplace_back(this->bounds(), /*isAA=*/false, /*isRect=*/true);