aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ClearTest.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-10-18 15:44:08 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-20 15:49:25 +0000
commitdbfecd06adeb03e9365f3539e113412c0b18785e (patch)
tree684f43bd5cfdd0c10366679ad21e522315a3263e /tests/ClearTest.cpp
parent9480d822f283582aa016ee9ca3f6d618ddcefbbb (diff)
Re-land unit test for clear bug (w/ AMD work-arounds)
Bug: 768134 Change-Id: I76e5e3ff5719b0d2f9c74d49dfa9e187e4da7c1f Reviewed-on: https://skia-review.googlesource.com/60562 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-on: https://skia-review.googlesource.com/61221
Diffstat (limited to 'tests/ClearTest.cpp')
-rw-r--r--tests/ClearTest.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/ClearTest.cpp b/tests/ClearTest.cpp
index c1c39dc4ea..fca031824c 100644
--- a/tests/ClearTest.cpp
+++ b/tests/ClearTest.cpp
@@ -11,6 +11,9 @@
#include "GrContext.h"
#include "GrRenderTargetContext.h"
+#include "SkCanvas.h"
+#include "SkSurface.h"
+
static bool check_rect(GrRenderTargetContext* rtc, const SkIRect& rect, uint32_t expectedValue,
uint32_t* actualValue, int* failX, int* failY) {
int w = rect.width();
@@ -212,8 +215,6 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ClearOp, reporter, ctxInfo) {
}
}
-#if 0
-
void fullscreen_clear_with_layer_test(skiatest::Reporter* reporter, GrContext* context) {
const SkImageInfo ii = SkImageInfo::Make(400, 77, kRGBA_8888_SkColorType, kPremul_SkAlphaType);
@@ -280,5 +281,3 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(FullScreenClearWithLayers, reporter, ctxInfo)
}
#endif
-
-#endif