aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GpuBitmapCopyTest.cpp
diff options
context:
space:
mode:
authorGravatar tfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-10 22:08:27 +0000
committerGravatar tfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-10 22:08:27 +0000
commit4ee16bfaedb14aff8cf102f1f0722ff2529a9699 (patch)
tree292ed655c6d81fb7e6061467d23e27bd27986a34 /tests/GpuBitmapCopyTest.cpp
parentf3abaeb0c5947e63856209166761d4ea766ff24b (diff)
Add a DEF_GPUTEST() macro.
This macro is similar to DEF_TEST() and simplifies the process of setting up a GPU test. BUG=skia:1952 TEST=tests R=mtklein@google.com Review URL: https://codereview.chromium.org/132293005 git-svn-id: http://skia.googlecode.com/svn/trunk@13033 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/GpuBitmapCopyTest.cpp')
-rw-r--r--tests/GpuBitmapCopyTest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/GpuBitmapCopyTest.cpp b/tests/GpuBitmapCopyTest.cpp
index a1434dcf11..9d1a527be0 100644
--- a/tests/GpuBitmapCopyTest.cpp
+++ b/tests/GpuBitmapCopyTest.cpp
@@ -18,6 +18,7 @@
#include "SkPixelRef.h"
#include "SkRect.h"
#include "Test.h"
+#include "TestClassDef.h"
static const char* boolStr(bool value) {
return value ? "true" : "false";
@@ -98,7 +99,7 @@ static void TestIndividualCopy(skiatest::Reporter* reporter, const SkBitmap::Con
// Stripped down version of TestBitmapCopy that checks basic fields (width, height, config, genID)
// to ensure that they were copied properly.
-static void TestGpuBitmapCopy(skiatest::Reporter* reporter, GrContextFactory* factory) {
+DEF_GPUTEST(GpuBitmapCopy, reporter, factory) {
#ifdef SK_BUILD_FOR_ANDROID // https://code.google.com/p/skia/issues/detail?id=753
return;
#endif
@@ -188,7 +189,4 @@ static void TestGpuBitmapCopy(skiatest::Reporter* reporter, GrContextFactory* fa
} // GrContextFactory::GLContextType
}
-#include "TestClassDef.h"
-DEFINE_GPUTESTCLASS("GpuBitmapCopy", TestGpuBitmapCopyClass, TestGpuBitmapCopy)
-
#endif