Skia
2DGraphicsLibrary
|
Gathers GPU-related statistics for one or more SkPictures. More...
#include <SkPictureAnalyzer.h>
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 |
Gathers GPU-related statistics for one or more SkPictures.