Flutter Engine
The Flutter Engine
Classes | Functions
DDLRecorderBench.cpp File Reference
#include <memory>
#include "bench/Benchmark.h"
#include "include/core/SkCanvas.h"
#include "include/gpu/GrDirectContext.h"
#include "include/private/chromium/GrDeferredDisplayListRecorder.h"
#include "include/private/chromium/GrSurfaceCharacterization.h"

Go to the source code of this file.

Classes

class  DDLRecorderBench
 

Functions

static GrSurfaceCharacterization create_characterization (GrDirectContext *direct)
 

Function Documentation

◆ create_characterization()

static GrSurfaceCharacterization create_characterization ( GrDirectContext direct)
static

Definition at line 17 of file DDLRecorderBench.cpp.

17 {
18 size_t maxResourceBytes = direct->getResourceCacheLimit();
19
22 }
23
25 kPremul_SkAlphaType, nullptr);
26
29 if (!backendFormat.isValid()) {
31 }
32
34
36 direct->threadSafeProxy()->createCharacterization(maxResourceBytes,
37 ii,
38 backendFormat,
39 1,
41 props,
43 return c;
44}
@ kTopLeft_GrSurfaceOrigin
Definition: GrTypes.h:148
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
Definition: SkAlphaType.h:29
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
Definition: SkColorType.h:24
@ kUnknown_SkPixelGeometry
bool isValid() const
GrSurfaceCharacterization createCharacterization(size_t cacheMaxResourceBytes, const SkImageInfo &ii, const GrBackendFormat &backendFormat, int sampleCount, GrSurfaceOrigin origin, const SkSurfaceProps &surfaceProps, skgpu::Mipmapped isMipmapped, bool willUseGLFBO0=false, bool isTextureable=true, skgpu::Protected isProtected=GrProtected::kNo, bool vkRTSupportsInputAttachment=false, bool forVulkanSecondaryCommandBuffer=false)
SK_API GrBackendFormat defaultBackendFormat(SkColorType, GrRenderable) const
SK_API bool colorTypeSupportedAsSurface(SkColorType colorType) const
size_t getResourceCacheLimit() const
sk_sp< GrContextThreadSafeProxy > threadSafeProxy()
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)