aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--fuzz/FuzzCanvas.cpp6
-rw-r--r--fuzz/oss_fuzz/FuzzMockGPUCanvas.cpp (renamed from fuzz/oss_fuzz/FuzzNullGLCanvas.cpp)4
2 files changed, 6 insertions, 4 deletions
diff --git a/fuzz/FuzzCanvas.cpp b/fuzz/FuzzCanvas.cpp
index 879f9a4862..3aca908cd0 100644
--- a/fuzz/FuzzCanvas.cpp
+++ b/fuzz/FuzzCanvas.cpp
@@ -1813,19 +1813,21 @@ DEF_FUZZ(NativeGLCanvas, fuzz) {
fuzz_ganesh(fuzz, context);
}
+// This target is deprecated, NullGLContext is not well maintained.
+// Please use MockGPUCanvas instead.
DEF_FUZZ(NullGLCanvas, fuzz) {
sk_gpu_test::GrContextFactory f;
fuzz_ganesh(fuzz, f.get(sk_gpu_test::GrContextFactory::kNullGL_ContextType));
}
// This target is deprecated, DebugGLContext is not well maintained.
-// Please use MockGLCanvas instead.
+// Please use MockGPUCanvas instead.
DEF_FUZZ(DebugGLCanvas, fuzz) {
sk_gpu_test::GrContextFactory f;
fuzz_ganesh(fuzz, f.get(sk_gpu_test::GrContextFactory::kDebugGL_ContextType));
}
-DEF_FUZZ(MockGLCanvas, fuzz) {
+DEF_FUZZ(MockGPUCanvas, fuzz) {
sk_gpu_test::GrContextFactory f;
fuzz_ganesh(fuzz, f.get(sk_gpu_test::GrContextFactory::kMock_ContextType));
}
diff --git a/fuzz/oss_fuzz/FuzzNullGLCanvas.cpp b/fuzz/oss_fuzz/FuzzMockGPUCanvas.cpp
index 0d562464e5..539e989f56 100644
--- a/fuzz/oss_fuzz/FuzzNullGLCanvas.cpp
+++ b/fuzz/oss_fuzz/FuzzMockGPUCanvas.cpp
@@ -7,7 +7,7 @@
#include "../Fuzz.h"
-void fuzz_NullGLCanvas(Fuzz* f);
+void fuzz_MockGPUCanvas(Fuzz* f);
extern "C" {
@@ -19,7 +19,7 @@ extern "C" {
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size));
- fuzz_NullGLCanvas(&fuzz);
+ fuzz_MockGPUCanvas(&fuzz);
return 0;
}
} // extern "C"