aboutsummaryrefslogtreecommitdiffhomepage
path: root/fuzz
diff options
context:
space:
mode:
authorGravatar Kevin Lubick <kjlubick@google.com>2018-04-03 12:30:32 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-03 17:02:20 +0000
commit27d42198d3cdd44918854539e7111d551eb9f995 (patch)
tree1edbc9df5f54d212ee501567075c56d770505688 /fuzz
parent4de7968f34363d0943a0ea716106a6e57030dc57 (diff)
Move oss-fuzz to MockGPUCanvas
Bug: skia:7776 Change-Id: I4f2791375d8be05486d10ce8f7f2e58aa032cfd8 Reviewed-on: https://skia-review.googlesource.com/118166 Commit-Queue: Kevin Lubick <kjlubick@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Mike Klein <mtklein@google.com> Reviewed-by: Jonathan Metzman <metzman@chromium.org>
Diffstat (limited to 'fuzz')
-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"