Flutter Engine
The Flutter Engine
|
#include "bench/Benchmark.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkImage.h"
#include "include/core/SkSurface.h"
#include "include/gpu/GrDirectContext.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrResourceCache.h"
#include "tools/ToolUtils.h"
#include <utility>
Go to the source code of this file.
Classes | |
class | ImageCacheBudgetBench |
class | ImageCacheBudgetDynamicBench |
Functions | |
static void | make_images (sk_sp< SkImage > imgs[], int cnt) |
static void | draw_image (SkCanvas *canvas, SkImage *img) |
void | set_cache_budget (SkCanvas *canvas, int approxImagesInBudget) |
Variables | |
static constexpr int | kS = 25 |
Definition at line 35 of file ImageCacheBudgetBench.cpp.
Definition at line 29 of file ImageCacheBudgetBench.cpp.
Definition at line 43 of file ImageCacheBudgetBench.cpp.
|
staticconstexpr |
These benchmarks were designed to measure changes to GrResourceCache's replacement policy
Definition at line 27 of file ImageCacheBudgetBench.cpp.