Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skgpu::graphite::NaiveBoundsManager Class Referencefinal

#include <BoundsManager.h>

Inheritance diagram for skgpu::graphite::NaiveBoundsManager:
skgpu::graphite::BoundsManager

Public Member Functions

 ~NaiveBoundsManager () override
 
CompressedPaintersOrder getMostRecentDraw (const Rect &bounds) const override
 
void recordDraw (const Rect &bounds, CompressedPaintersOrder order) override
 
void reset () override
 
- Public Member Functions inherited from skgpu::graphite::BoundsManager
virtual ~BoundsManager ()
 
virtual CompressedPaintersOrder getMostRecentDraw (const Rect &bounds) const =0
 
virtual void recordDraw (const Rect &bounds, CompressedPaintersOrder order)=0
 
virtual void reset ()=0
 

Detailed Description

Definition at line 49 of file BoundsManager.h.

Constructor & Destructor Documentation

◆ ~NaiveBoundsManager()

skgpu::graphite::NaiveBoundsManager::~NaiveBoundsManager ( )
inlineoverride

Definition at line 51 of file BoundsManager.h.

51{}

Member Function Documentation

◆ getMostRecentDraw()

CompressedPaintersOrder skgpu::graphite::NaiveBoundsManager::getMostRecentDraw ( const Rect bounds) const
inlineoverridevirtual

Implements skgpu::graphite::BoundsManager.

Definition at line 53 of file BoundsManager.h.

53 {
54 return fLatestDraw;
55 }

◆ recordDraw()

void skgpu::graphite::NaiveBoundsManager::recordDraw ( const Rect bounds,
CompressedPaintersOrder  order 
)
inlineoverridevirtual

Implements skgpu::graphite::BoundsManager.

Definition at line 58 of file BoundsManager.h.

58 {
59 if (fLatestDraw < order) {
60 fLatestDraw = order;
61 }
62 }

◆ reset()

void skgpu::graphite::NaiveBoundsManager::reset ( )
inlineoverridevirtual

Implements skgpu::graphite::BoundsManager.

Definition at line 64 of file BoundsManager.h.

64 {
65 fLatestDraw = CompressedPaintersOrder::First();
66 }

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