08ba085253
This reverts commit 89fb346d2b
.
Reason for revert: Google3 failure
Original change's description:
> De-GL-ify tests, gm and tools
>
> Change-Id: Id15a3a4b2c8b80b9dc7ecdab1cf1af1f9282f442
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/215447
> Reviewed-by: Jim Van Verth <jvanverth@google.com>
> Commit-Queue: Robert Phillips <robertphillips@google.com>
TBR=jvanverth@google.com,robertphillips@google.com
Change-Id: I155b033ac48d9fea15f66b22a090fb34f3bb81fa
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/215521
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
/*
|
|
* Copyright 2015 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#include "tests/Test.h"
|
|
|
|
#include "include/gpu/GrContext.h"
|
|
#include "tools/gpu/gl/GLTestContext.h"
|
|
|
|
// This is an example of a normal test.
|
|
DEF_TEST(TestNormal, reporter) {
|
|
REPORTER_ASSERT(reporter, reporter);
|
|
}
|
|
|
|
// This is an example of a GPU test that uses GrContextOptions to do the test.
|
|
DEF_GPUTEST(TestGpuFactory, reporter, factory) {
|
|
REPORTER_ASSERT(reporter, reporter);
|
|
}
|
|
|
|
// This is an example of a GPU test that tests a property that should work for all GPU contexts.
|
|
// Note: Some of the contexts might not produce a rendering output.
|
|
DEF_GPUTEST_FOR_ALL_CONTEXTS(TestGpuAllContexts, reporter, ctxInfo) {
|
|
REPORTER_ASSERT(reporter, reporter);
|
|
REPORTER_ASSERT(reporter, ctxInfo.grContext());
|
|
}
|
|
|
|
// This is an example of a GPU test that tests a property that should work for all GPU contexts that
|
|
// produce a rendering output.
|
|
DEF_GPUTEST_FOR_RENDERING_CONTEXTS(TestGpuRenderingContexts, reporter, ctxInfo) {
|
|
REPORTER_ASSERT(reporter, reporter);
|
|
REPORTER_ASSERT(reporter, ctxInfo.grContext());
|
|
}
|
|
|
|
// This is an example of a GPU test that tests a property that uses the mock context. It should
|
|
// be used if the test tests some behavior that is mocked with the mock context.
|
|
DEF_GPUTEST_FOR_MOCK_CONTEXT(TestMockContext, reporter, ctxInfo) {
|
|
REPORTER_ASSERT(reporter, reporter);
|
|
REPORTER_ASSERT(reporter, ctxInfo.grContext());
|
|
}
|