| Index: tests/ReadWriteAlphaTest.cpp
|
| diff --git a/tests/ReadWriteAlphaTest.cpp b/tests/ReadWriteAlphaTest.cpp
|
| index fb177df8b5b6fc438b88b033cfd5e2bb208c656c..47a5f5a7c132e4fff14b054b48066bf5ce6a5b0e 100644
|
| --- a/tests/ReadWriteAlphaTest.cpp
|
| +++ b/tests/ReadWriteAlphaTest.cpp
|
| @@ -1,4 +1,3 @@
|
| -
|
| /*
|
| * Copyright 2012 Google Inc.
|
| *
|
| @@ -9,14 +8,15 @@
|
| // This test is specific to the GPU backend.
|
| #if SK_SUPPORT_GPU && !defined(SK_BUILD_FOR_ANDROID)
|
|
|
| -#include "Test.h"
|
| -#include "SkGpuDevice.h"
|
| #include "GrContextFactory.h"
|
| +#include "SkGpuDevice.h"
|
| +#include "Test.h"
|
| +#include "TestClassDef.h"
|
|
|
| static const int X_SIZE = 12;
|
| static const int Y_SIZE = 12;
|
|
|
| -static void ReadWriteAlphaTest(skiatest::Reporter* reporter, GrContextFactory* factory) {
|
| +DEF_GPUTEST(ReadWriteAlpha, reporter, factory) {
|
| for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) {
|
| GrContextFactory::GLContextType glType = static_cast<GrContextFactory::GLContextType>(type);
|
| if (!GrContextFactory::IsRenderingGLContext(glType)) {
|
| @@ -110,7 +110,4 @@ static void ReadWriteAlphaTest(skiatest::Reporter* reporter, GrContextFactory* f
|
| }
|
| }
|
|
|
| -#include "TestClassDef.h"
|
| -DEFINE_GPUTESTCLASS("ReadWriteAlpha", ReadWriteAlphaTestClass, ReadWriteAlphaTest)
|
| -
|
| #endif
|
|
|