Home | History | Annotate | Download | only in utils

Lines Matching defs:DeferredDevice

138 // DeferredDevice
141 class DeferredDevice : public SkBitmapDevice {
143 explicit DeferredDevice(SkBaseDevice* immediateDevice);
144 explicit DeferredDevice(SkSurface* surface);
145 ~DeferredDevice();
257 DeferredDevice::DeferredDevice(SkBaseDevice* immediateDevice)
268 DeferredDevice::DeferredDevice(SkSurface* surface)
282 void DeferredDevice::setSurface(SkSurface* surface) {
288 void DeferredDevice::init() {
299 DeferredDevice::~DeferredDevice() {
305 void DeferredDevice::setMaxRecordingStorage(size_t maxStorage) {
310 void DeferredDevice::beginRecording() {
316 void DeferredDevice::setNotificationClient(
321 void DeferredDevice::skipPendingCommands() {
334 bool DeferredDevice::isFreshFrame() {
340 bool DeferredDevice::hasPendingCommands() {
344 void DeferredDevice::aboutToDraw()
357 void DeferredDevice::flushPendingCommands(PlaybackMode playbackMode) {
372 void DeferredDevice::flush() {
377 size_t DeferredDevice::freeMemoryIfPossible(size_t bytesToFree) {
383 size_t DeferredDevice::getBitmapSizeThreshold() const {
387 void DeferredDevice::setBitmapSizeThreshold(size_t sizeThreshold) {
391 size_t DeferredDevice::storageAllocatedForRecording() const {
396 void DeferredDevice::recordedDrawCommand() {
419 SkCanvas* DeferredDevice::recordingCanvas() {
423 SkImage* DeferredDevice::newImageSnapshot() {
428 uint32_t DeferredDevice::getDeviceCapabilities() {
432 int DeferredDevice::width() const {
436 int DeferredDevice::height() const {
440 GrRenderTarget* DeferredDevice::accessRenderTarget() {
445 void DeferredDevice::prepareForImmediatePixelWrite() {
462 void DeferredDevice::writePixels(const SkBitmap& bitmap,
491 const SkBitmap& DeferredDevice::onAccessBitmap() {
496 SkBaseDevice* DeferredDevice::onCreateCompatibleDevice(
505 // And connecting a DeferredDevice to non-deferred canvas can result
510 bool DeferredDevice::onReadPixels(
536 DeferredDevice* device = static_cast<DeferredDevice*>(canvas.getDevice());
550 SkAutoTUnref<DeferredDevice> deferredDevice(SkNEW_ARGS(DeferredDevice, (surface)));
551 return SkNEW_ARGS(SkDeferredCanvas, (deferredDevice));
555 SkAutoTUnref<DeferredDevice> deferredDevice(SkNEW_ARGS(DeferredDevice, (device)));
556 return SkNEW_ARGS(SkDeferredCanvas, (deferredDevice));
559 SkDeferredCanvas::SkDeferredCanvas(DeferredDevice* device) : SkCanvas (device) {
581 DeferredDevice* deferredDevice = this->getDeferredDevice();
582 SkASSERT(deferredDevice);
583 deferredDevice->setBitmapSizeThreshold(sizeThreshold);
607 DeferredDevice* SkDeferredCanvas::getDeferredDevice() const {
608 return static_cast<DeferredDevice*>(this->getDevice());
644 DeferredDevice* deferredDevice = this->getDeferredDevice();
645 SkASSERT(NULL != deferredDevice);
649 deferredDevice->setSurface(surface);
656 DeferredDevice* deferredDevice = this->getDeferredDevice();
657 SkASSERT(deferredDevice);
658 if (deferredDevice) {
659 deferredDevice->setNotificationClient(notificationClient);
665 DeferredDevice* deferredDevice = this->getDeferredDevice();
666 SkASSERT(deferredDevice);
667 return deferredDevice ? deferredDevice->newImageSnapshot() : NULL;