Rename "GPU" macros to be explicitly for Ganesh backends.
Basically a big find/replace of DEF_GPUTEST -> DEF_GANESH_TEST
Then I ran git clang-format <parent CL branch>. I had to install
the git-clang-format script, but it was worth it. I documented
how to install it in .clang-format.
Note some updated docs in TestTest.cpp
Change-Id: I778955de6e5a07100a96aaa042542bda47a9da6f
Bug: skia:13758
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/583237
Reviewed-by: Greg Daniel <[email protected]>
diff --git a/tests/WrappedSurfaceCopyOnWriteTest.cpp b/tests/WrappedSurfaceCopyOnWriteTest.cpp
index dd03891..182a016 100644
--- a/tests/WrappedSurfaceCopyOnWriteTest.cpp
+++ b/tests/WrappedSurfaceCopyOnWriteTest.cpp
@@ -20,10 +20,10 @@
#include "tools/gpu/BackendSurfaceFactory.h"
#include "tools/gpu/ProxyUtils.h"
-DEF_GPUTEST_FOR_ALL_CONTEXTS(WrappedSurfaceCopyOnWrite,
- reporter,
- ctxInfo,
- CtsEnforcement::kApiLevel_T) {
+DEF_GANESH_TEST_FOR_ALL_CONTEXTS(WrappedSurfaceCopyOnWrite,
+ reporter,
+ ctxInfo,
+ CtsEnforcement::kApiLevel_T) {
GrDirectContext* dContext = ctxInfo.directContext();
auto makeDirectBackendSurface = [&]() {
@@ -82,7 +82,10 @@
}
// Make sure GrCopyRenderTasks's skip actually skips the copy.
-DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SkipCopyTaskTest, reporter, ctxInfo, CtsEnforcement::kNever) {
+DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS(SkipCopyTaskTest,
+ reporter,
+ ctxInfo,
+ CtsEnforcement::kNever) {
GrDirectContext* dContext = ctxInfo.directContext();
GrImageInfo info(GrColorType::kRGBA_8888,
@@ -133,7 +136,7 @@
#if SK_GPU_V1
// Make sure OpsTask are skippable
-DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SkipOpsTaskTest, reporter, ctxInfo, CtsEnforcement::kNever) {
+DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS(SkipOpsTaskTest, reporter, ctxInfo, CtsEnforcement::kNever) {
GrDirectContext* dContext = ctxInfo.directContext();
GrImageInfo ii(GrColorType::kRGBA_8888, kPremul_SkAlphaType, /*color space*/ nullptr, 10, 10);