Flutter Engine
The Flutter Engine
Functions
SKPBench.cpp File Reference
#include "bench/GpuTools.h"
#include "bench/SKPBench.h"
#include "include/core/SkSurface.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/ganesh/SkSurfaceGanesh.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrGpu.h"
#include "tools/flags/CommandLineFlags.h"

Go to the source code of this file.

Functions

static DEFINE_int (CPUbenchTileW, 256, "Tile width used for CPU SKP playback.")
 
static DEFINE_int (CPUbenchTileH, 256, "Tile height used for CPU SKP playback.")
 
static DEFINE_int (GPUbenchTileW, 1600, "Tile width used for GPU SKP playback.")
 
static DEFINE_int (GPUbenchTileH, 512, "Tile height used for GPU SKP playback.")
 
static void draw_pic_for_stats (SkCanvas *canvas, GrDirectContext *dContext, const SkPicture *picture, TArray< SkString > *keys, TArray< double > *values)
 

Function Documentation

◆ DEFINE_int() [1/4]

static DEFINE_int ( CPUbenchTileH  ,
256  ,
"Tile height used for CPU SKP playback."   
)
static

◆ DEFINE_int() [2/4]

static DEFINE_int ( CPUbenchTileW  ,
256  ,
"Tile width used for CPU SKP playback."   
)
static

◆ DEFINE_int() [3/4]

static DEFINE_int ( GPUbenchTileH  ,
512  ,
"Tile height used for GPU SKP playback."   
)
static

◆ DEFINE_int() [4/4]

static DEFINE_int ( GPUbenchTileW  ,
1600  ,
"Tile width used for GPU SKP playback."   
)
static

◆ draw_pic_for_stats()

static void draw_pic_for_stats ( SkCanvas canvas,
GrDirectContext dContext,
const SkPicture picture,
TArray< SkString > *  keys,
TArray< double > *  values 
)
static

Definition at line 169 of file SKPBench.cpp.

173 {
174 dContext->priv().resetGpuStats();
175 dContext->priv().resetContextStats();
176 canvas->drawPicture(picture);
177 dContext->flush();
178
179 dContext->priv().dumpGpuStatsKeyValuePairs(keys, values);
180 dContext->priv().dumpCacheStatsKeyValuePairs(keys, values);
181 dContext->priv().dumpContextStatsKeyValuePairs(keys, values);
182}
GrSemaphoresSubmitted flush(const GrFlushInfo &info)
GrDirectContextPriv priv()
void drawPicture(const SkPicture *picture)
Definition: SkCanvas.h:1961
sk_sp< const SkPicture > picture
Definition: SkRecords.h:299