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

Public Member Functions

 AutoReleasePixels (DiffRecord *drp)
 
 ~AutoReleasePixels ()
 

Detailed Description

Definition at line 312 of file skdiff_main.cpp.

Constructor & Destructor Documentation

◆ AutoReleasePixels()

AutoReleasePixels::AutoReleasePixels ( DiffRecord drp)
inline

Definition at line 314 of file skdiff_main.cpp.

315 : fDrp(drp) {
316 SkASSERT(drp != nullptr);
317 }
#define SkASSERT(cond)
Definition: SkAssert.h:116

◆ ~AutoReleasePixels()

AutoReleasePixels::~AutoReleasePixels ( )
inline

Definition at line 318 of file skdiff_main.cpp.

318 {
319 fDrp->fBase.fBitmap.setPixelRef(nullptr, 0, 0);
320 fDrp->fComparison.fBitmap.setPixelRef(nullptr, 0, 0);
321 fDrp->fDifference.fBitmap.setPixelRef(nullptr, 0, 0);
322 fDrp->fWhite.fBitmap.setPixelRef(nullptr, 0, 0);
323 }
void setPixelRef(sk_sp< SkPixelRef > pixelRef, int dx, int dy)
Definition: SkBitmap.cpp:182
DiffResource fDifference
Definition: skdiff.h:132
DiffResource fComparison
Definition: skdiff.h:131
DiffResource fBase
Definition: skdiff.h:130
DiffResource fWhite
Definition: skdiff.h:133
SkBitmap fBitmap
Definition: skdiff.h:83

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