Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkPictureGpuAnalyzer Class Referencefinal

Gathers GPU-related statistics for one or more SkPictures. More...

#include <SkPictureAnalyzer.h>

Inheritance diagram for SkPictureGpuAnalyzer:

Public Member Functions

 SkPictureGpuAnalyzer (sk_sp< GrContextThreadSafeProxy >=nullptr)
 
 SkPictureGpuAnalyzer (const sk_sp< SkPicture > &picture, sk_sp< GrContextThreadSafeProxy >=nullptr)
 
void analyzePicture (const SkPicture *)
 Process the given picture and accumulate its stats.
 
void analyzeClipPath (const SkPath &, SkClipOp, bool doAntiAlias)
 Process an explicit clipPath op.
 
void reset ()
 Reset all accumulated stats.
 
bool suitableForGpuRasterization (const char **whyNot=nullptr) const
 Returns true if the analyzed pictures are suitable for rendering on the GPU.
 
uint32_t numSlowGpuCommands ()
 Returns the number of commands which are slow to draw on the GPU, capped at the predicate max.
 

Private Types

typedef SkNoncopyable INHERITED
 

Private Attributes

uint32_t fNumSlowPaths
 

Detailed Description

Gathers GPU-related statistics for one or more SkPictures.


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