Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkCanvas::AutoUpdateQRBounds Class Reference

Public Member Functions

 AutoUpdateQRBounds (SkCanvas *canvas)
 
 ~AutoUpdateQRBounds ()
 

Detailed Description

Definition at line 229 of file SkCanvas.cpp.

Constructor & Destructor Documentation

◆ AutoUpdateQRBounds()

SkCanvas::AutoUpdateQRBounds::AutoUpdateQRBounds ( SkCanvas canvas)
inlineexplicit

Definition at line 231 of file SkCanvas.cpp.

231 : fCanvas(canvas) {
232 // pre-condition, fQuickRejectBounds and other state should be valid before anything
233 // modifies the device's clip.
234 fCanvas->validateClip();
235 }

◆ ~AutoUpdateQRBounds()

SkCanvas::AutoUpdateQRBounds::~AutoUpdateQRBounds ( )
inline

Definition at line 236 of file SkCanvas.cpp.

236 {
237 fCanvas->fQuickRejectBounds = fCanvas->computeDeviceClipBounds();
238 // post-condition, we should remain valid after re-computing the bounds
239 fCanvas->validateClip();
240 }

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