aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/BlurTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/BlurTest.cpp')
-rw-r--r--tests/BlurTest.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/BlurTest.cpp b/tests/BlurTest.cpp
index 07cfdcd2b1..2462342032 100644
--- a/tests/BlurTest.cpp
+++ b/tests/BlurTest.cpp
@@ -39,9 +39,7 @@
#include "Test.h"
#include "sk_pixel_iter.h"
-#if SK_SUPPORT_GPU
#include "GrContextFactory.h"
-#endif
#include <math.h>
#include <string.h>
@@ -349,9 +347,7 @@ DEF_TEST(BlurSigmaRange, reporter) {
#if WRITE_CSV
write_as_csv("RectSpecialCase", sigma, rectSpecialCaseResult, kSize);
write_as_csv("GeneralCase", sigma, generalCaseResult, kSize);
-#if SK_SUPPORT_GPU
write_as_csv("GPU", sigma, gpuResult, kSize);
-#endif
write_as_csv("GroundTruth2D", sigma, groundTruthResult, kSize);
write_as_csv("BruteForce1D", sigma, bruteForce1DResult, kSize);
#endif
@@ -500,8 +496,6 @@ DEF_TEST(BlurAsABlur, reporter) {
}
}
-#if SK_SUPPORT_GPU
-
// This exercises the problem discovered in crbug.com/570232. The return value from
// SkBlurMask::BoxBlur wasn't being checked in SkBlurMaskFilter.cpp::GrRRectBlurEffect::Create
DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SmallBoxBlurBug, reporter, ctxInfo) {
@@ -519,9 +513,6 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SmallBoxBlurBug, reporter, ctxInfo) {
canvas->drawRRect(rr, p);
}
-#endif
-
-
DEF_TEST(BlurredRRectNinePatchComputation, reporter) {
const SkRect r = SkRect::MakeXYWH(10, 10, 100, 100);
static const SkScalar kBlurRad = 3.0f;
@@ -710,7 +701,6 @@ DEF_TEST(BlurZeroSigma, reporter) {
///////////////////////////////////////////////////////////////////////////////////////////
-#if SK_SUPPORT_GPU
DEF_GPUTEST_FOR_RENDERING_CONTEXTS(BlurMaskBiggerThanDest, reporter, ctxInfo) {
GrContext* context = ctxInfo.grContext();
@@ -741,6 +731,3 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(BlurMaskBiggerThanDest, reporter, ctxInfo) {
REPORTER_ASSERT(reporter, SkColorGetB(readback.getColor(15, 15)) == 0);
REPORTER_ASSERT(reporter, readback.getColor(31, 31) == SK_ColorBLACK);
}
-
-#endif
-