Lines Matching defs:device

43      *  Return ImageInfo for this device. If the canvas is not backed by pixels
49 * Return SurfaceProps for this device.
58 * Return the bounds of the device in the coordinate space of the root
59 * canvas. The root device will have its top-left at 0,0, but other devices
74 * Returns the bounding box of the current clip, in this device's
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
114 * into the global canvas' space (or root device space). This includes the translation
115 * necessary to account for the device's origin.
120 * device space) into this device's coordinate space.
125 * components. In the future some SkDevices will have more complex device-to-global transforms,
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
205 kPossible_TileUsage, //!< the created device may be drawn tiled
206 kNever_TileUsage, //!< the created device will never be drawn tiled
235 /** These are called inside the per-device-layer loop for each draw call.
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
317 * of the device's current local to device matrix.
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.
327 * local-to-device matrix (i.e. just like drawSpecial and drawDevice).
339 // Get a view of the entire device's current contents as an image.
341 // Snap the 'subset' contents from this device, possibly as a read-only view. If 'forceCopy'
343 // device. When 'forceCopy' is false, the image can be a view into the device's pixels
356 * image at the specified x,y offset will fit within the device's bounds.
364 * image at the specified x,y offset will fit within the device's bounds.
393 * Create a new device based on CreateInfo. If the paint is not null, then it represents a
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
397 * a device that it knows how to draw, and that it knows how to identify if it is not of the
408 // inspect a layer's device to know if calling drawDevice() later is allowed.
428 // Configure the device's coordinate spaces, specifying both how its device image maps back to
429 // the global space (via 'deviceToGlobal') and the initial CTM of the device (via
430 // 'localToDevice', i.e. what geometry drawn into this device will be transformed with).
432 // (bufferOriginX, bufferOriginY) defines where the (0,0) pixel the device's backing buffer
433 // is anchored in the device space. The final device-to-global matrix stored by the SkDevice
435 // local-to-device matrix will have a post-translation of T(-deviceOriginX, -deviceOriginY).
437 // Returns false if the final device coordinate space is invalid, in which case the canvas
438 // should discard the device
442 // Convenience to configure the device to be axis-aligned with the root canvas, but with a
465 // fLocalToDevice (inherited from SkMatrixProvider) is the device CTM, not the global CTM
466 // It maps from local space to the device's coordinate space.
569 SkAutoDeviceTransformRestore(SkBaseDevice* device, const SkMatrix& localToDevice)
570 : fDevice(device)
571 , fPrevLocalToDevice(device->localToDevice())