Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkAutoDeviceTransformRestore Class Reference

#include <SkDevice.h>

Inheritance diagram for SkAutoDeviceTransformRestore:
SkNoncopyable

Public Member Functions

 SkAutoDeviceTransformRestore (SkDevice *device, const SkMatrix &localToDevice)
 
 ~SkAutoDeviceTransformRestore ()
 

Detailed Description

Definition at line 644 of file SkDevice.h.

Constructor & Destructor Documentation

◆ SkAutoDeviceTransformRestore()

SkAutoDeviceTransformRestore::SkAutoDeviceTransformRestore ( SkDevice device,
const SkMatrix localToDevice 
)
inline

Definition at line 646 of file SkDevice.h.

647 : fDevice(device)
648 , fPrevLocalToDevice(device->localToDevice())
649 {
650 fDevice->setLocalToDevice(SkM44(localToDevice));
651 }
void setLocalToDevice(const SkM44 &localToDevice)
Definition: SkDevice.h:211
Definition: SkM44.h:150
VkDevice device
Definition: main.cc:53

◆ ~SkAutoDeviceTransformRestore()

SkAutoDeviceTransformRestore::~SkAutoDeviceTransformRestore ( )
inline

Definition at line 652 of file SkDevice.h.

652 {
653 fDevice->setLocalToDevice(fPrevLocalToDevice);
654 }

The documentation for this class was generated from the following file: