aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/TestUtils.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-01-27 14:28:29 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-27 14:28:40 +0000
commit2b270e566263e93bcdfe00f858dba1970f5091f4 (patch)
tree533e6d0f750c4cb908ebb9593293fc4b2e57bd23 /tests/TestUtils.h
parent837e74365e511853df534cc23bd2128c7c235e2f (diff)
Revert "Consolidate read/write-Pixels testing code"
This reverts commit 0bd4a23ef40d74ef051eb7f457c133d5febc377d. Reason for revert: What?!? Original change's description: > Consolidate read/write-Pixels testing code > > Change-Id: I853f8f747ed0040333473fbc722cabac84e6ac83 > Reviewed-on: https://skia-review.googlesource.com/7560 > Commit-Queue: Robert Phillips <robertphillips@google.com> > Reviewed-by: Brian Osman <brianosman@google.com> > TBR=robertphillips@google.com,brianosman@google.com,reviews@skia.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Change-Id: I9cb049a4f86350f849d00839a55b55fb07e861b0 Reviewed-on: https://skia-review.googlesource.com/7648 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tests/TestUtils.h')
-rw-r--r--tests/TestUtils.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/TestUtils.h b/tests/TestUtils.h
deleted file mode 100644
index 7c3370ed7e..0000000000
--- a/tests/TestUtils.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright 2017 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "Test.h"
-
-#if SK_SUPPORT_GPU
-
-class GrSurfaceContext;
-class GrSurfaceProxy;
-
-// Ensure that reading back from 'srcContext' as RGBA 8888 matches 'expectedPixelValues
-void test_read_pixels(skiatest::Reporter* reporter, GrContext* context,
- GrSurfaceContext* srcContext, uint32_t expectedPixelValues[],
- const char* testName);
-
-// See if trying to write RGBA 8888 pixels to 'dstContext' matches matches the
-// expectation ('expectedToWork')
-void test_write_pixels(skiatest::Reporter* reporter, GrContext* context,
- GrSurfaceContext* srcContext, bool expectedToWork, const char* testName);
-
-// Ensure that the pixels can be copied from 'proxy' to an RGBA 8888 destination (both
-// texture-backed and rendertarget-backed).
-void test_copy_from_surface(skiatest::Reporter* reporter, GrContext* context,
- GrSurfaceProxy* proxy, uint32_t expectedPixelValues[],
- bool onlyTestRTConfig, const char* testName);
-
-// Ensure that RGBA 8888 pixels can be copied into 'dstContext'
-void test_copy_to_surface(skiatest::Reporter* reporter, GrContext* context,
- GrSurfaceContext* dstContext, const char* testName);
-#endif