Add Graphite flavor of SkRuntimeBlender test

The SkRuntimeBlender_GPU was crashing for me on Linux

Change-Id: Ic49d05f525ec59523fa7f8cc2c640c7b34a01ca9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1061336
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Thomas Smith <thomsmit@google.com>
diff --git a/tests/RuntimeBlendTest.cpp b/tests/RuntimeBlendTest.cpp
index 00ef9a3..e2e97a6 100644
--- a/tests/RuntimeBlendTest.cpp
+++ b/tests/RuntimeBlendTest.cpp
@@ -24,6 +24,12 @@
 #include "tests/Test.h"
 #include "tools/RuntimeBlendUtils.h"
 
+#if defined(SK_GRAPHITE)
+#include "include/gpu/graphite/Context.h"
+#include "include/gpu/graphite/Surface.h"
+#include "tools/graphite/GraphiteToolUtils.h"
+#endif
+
 #include <cmath>
 #include <initializer_list>
 #include <vector>
@@ -106,7 +112,7 @@
     test_blend(r, surface.get());
 }
 
-DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS(SkRuntimeBlender_GPU,
+DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS(SkRuntimeBlender_Ganesh,
                                        r,
                                        ctxInfo,
                                        CtsEnforcement::kApiLevel_T) {
@@ -115,3 +121,18 @@
             SkSurfaces::RenderTarget(ctxInfo.directContext(), skgpu::Budgeted::kNo, info));
     test_blend(r, surface.get());
 }
+
+#if defined(SK_GRAPHITE)
+DEF_GRAPHITE_TEST_FOR_RENDERING_CONTEXTS(SkRuntimeBlender_Graphite,
+                                         r,
+                                         context,
+                                         CtsEnforcement::kNextRelease) {
+    std::unique_ptr<skgpu::graphite::Recorder> recorder =
+            context->makeRecorder(ToolUtils::CreateTestingRecorderOptions());
+
+    const SkImageInfo info = SkImageInfo::MakeN32Premul(/*width=*/1, /*height=*/1);
+
+    sk_sp<SkSurface> surface = SkSurfaces::RenderTarget(recorder.get(), info);
+    test_blend(r, surface.get());
+}
+#endif