Flutter Engine
The Flutter Engine
Functions
FuzzPrecompile.cpp File Reference
#include "fuzz/Fuzz.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkFont.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPathBuilder.h"
#include "include/core/SkRefCnt.h"
#include "include/effects/SkColorMatrix.h"
#include "include/gpu/graphite/Context.h"
#include "include/gpu/graphite/Surface.h"
#include "include/gpu/graphite/precompile/Precompile.h"
#include "include/gpu/graphite/precompile/PrecompileColorFilter.h"
#include "modules/skcms/skcms.h"
#include "src/core/SkBlenderBase.h"
#include "src/gpu/graphite/ContextPriv.h"
#include "src/gpu/graphite/ContextUtils.h"
#include "src/gpu/graphite/FactoryFunctions.h"
#include "src/gpu/graphite/KeyContext.h"
#include "src/gpu/graphite/PaintParams.h"
#include "src/gpu/graphite/PaintParamsKey.h"
#include "src/gpu/graphite/PipelineData.h"
#include "src/gpu/graphite/PrecompileInternal.h"
#include "src/gpu/graphite/PublicPrecompile.h"
#include "src/gpu/graphite/RecorderPriv.h"
#include "src/gpu/graphite/Renderer.h"
#include "src/gpu/graphite/RuntimeEffectDictionary.h"
#include "src/gpu/graphite/geom/Geometry.h"
#include "src/gpu/graphite/precompile/PaintOptionsPriv.h"
#include "tools/ToolUtils.h"
#include "tools/gpu/GrContextFactory.h"
#include "tools/graphite/ContextFactory.h"

Go to the source code of this file.

Functions

 DEF_FUZZ (Precompile, fuzz)
 

Function Documentation

◆ DEF_FUZZ()

DEF_FUZZ ( Precompile  ,
fuzz   
)

Definition at line 422 of file FuzzPrecompile.cpp.

422 {
424
425 skgpu::ContextType contextType;
426#if defined(SK_METAL)
427 contextType = skgpu::ContextType::kMetal;
428#elif defined(SK_VULKAN)
429 contextType = skgpu::ContextType::kVulkan;
430#else
431 contextType = skgpu::ContextType::kMock;
432#endif
433
434 skiatest::graphite::ContextInfo ctxInfo = factory.getContextInfo(contextType);
435 skgpu::graphite::Context* context = ctxInfo.fContext;
436 if (!context) {
437 return;
438 }
439
440 fuzz_graphite(fuzz, context);
441}
ContextInfo getContextInfo(skgpu::ContextType)
ContextType
Definition: ContextType.h:19
@ kVulkan
ANGLE on Metal ES 3 context.
@ kMock
Dawn on OpenGL ES.
skgpu::graphite::Context * fContext