8#ifndef GrThreadSafePipelineBuilder_Base_DEFINED
9#define GrThreadSafePipelineBuilder_Base_DEFINED
15#if defined(GR_TEST_UTILS)
39 int shaderCompilations()
const {
return fShaderCompilations; }
42 int numInlineCompilationFailures()
const {
return fNumInlineCompilationFailures; }
46 return fInlineProgramCacheStats[(
int) stat];
49 ++fInlineProgramCacheStats[(
int) stat];
52 int numPreCompilationFailures()
const {
return fNumPreCompilationFailures; }
56 return fPreProgramCacheStats[(
int) stat];
59 ++fPreProgramCacheStats[(
int) stat];
62 int numCompilationFailures()
const {
return fNumCompilationFailures; }
65 int numPartialCompilationSuccesses()
const {
return fNumPartialCompilationSuccesses; }
68 int numCompilationSuccesses()
const {
return fNumCompilationSuccesses; }
71#if defined(GR_TEST_UTILS)
77 std::atomic<int> fShaderCompilations{0};
79 std::atomic<int> fNumInlineCompilationFailures{0};
80 std::atomic<int> fInlineProgramCacheStats[kNumProgramCacheResults]{};
82 std::atomic<int> fNumPreCompilationFailures{0};
83 std::atomic<int> fPreProgramCacheStats[kNumProgramCacheResults]{};
85 std::atomic<int> fNumCompilationFailures{0};
86 std::atomic<int> fNumPartialCompilationSuccesses{0};
87 std::atomic<int> fNumCompilationSuccesses{0};
99#if defined(GR_TEST_UTILS)
static void dump(const float m[20], SkYUVColorSpace cs, bool rgb2yuv)
void incNumPreCompilationFailures()
void incNumPreProgramCacheResult(ProgramCacheResult stat)
void incShaderCompilations()
void incNumInlineCompilationFailures()
void incNumPartialCompilationSuccesses()
void incNumCompilationFailures()
void incNumInlineProgramCacheResult(ProgramCacheResult stat)
void incNumCompilationSuccesses()
GrThreadSafePipelineBuilder()=default