Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 "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/PaintOptionsPriv.h"
#include "src/gpu/graphite/PaintParams.h"
#include "src/gpu/graphite/PaintParamsKey.h"
#include "src/gpu/graphite/PipelineData.h"
#include "src/gpu/graphite/Precompile.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 "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 419 of file FuzzPrecompile.cpp.

419 {
421
422 skgpu::ContextType contextType;
423#if defined(SK_METAL)
424 contextType = skgpu::ContextType::kMetal;
425#elif defined(SK_VULKAN)
426 contextType = skgpu::ContextType::kVulkan;
427#else
428 contextType = skgpu::ContextType::kMock;
429#endif
430
431 skiatest::graphite::ContextInfo ctxInfo = factory.getContextInfo(contextType);
432 skgpu::graphite::Context* context = ctxInfo.fContext;
433 if (!context) {
434 return;
435 }
436
437 fuzz_graphite(fuzz, context);
438}
ContextInfo getContextInfo(skgpu::ContextType)
skgpu::graphite::Context * fContext