| bsalomon@google.com | a8e686e | 2011-08-16 15:45:58 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2011 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
| 8 | |
| bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame^] | 9 | // This is a GPU-backend specific test |
| 10 | #if SK_SUPPORT_GPU |
| 11 | |
| bsalomon@google.com | a8e686e | 2011-08-16 15:45:58 +0000 | [diff] [blame] | 12 | #include "Test.h" |
| 13 | #include "GrContext.h" |
| bsalomon@google.com | 5739d2c | 2012-05-31 15:07:19 +0000 | [diff] [blame] | 14 | #include "gl/GrGpuGL.h" |
| bsalomon@google.com | a8e686e | 2011-08-16 15:45:58 +0000 | [diff] [blame] | 15 | |
| 16 | static void GLProgramsTest(skiatest::Reporter* reporter, GrContext* context) { |
| bsalomon@google.com | 5739d2c | 2012-05-31 15:07:19 +0000 | [diff] [blame] | 17 | GrGpuGL* shadersGpu = static_cast<GrGpuGL*>(context->getGpu()); |
| bsalomon@google.com | a8e686e | 2011-08-16 15:45:58 +0000 | [diff] [blame] | 18 | REPORTER_ASSERT(reporter, shadersGpu->programUnitTest()); |
| 19 | } |
| 20 | |
| 21 | |
| 22 | #include "TestClassDef.h" |
| 23 | DEFINE_GPUTESTCLASS("GLPrograms", GLProgramsTestClass, GLProgramsTest) |
| 24 | |
| bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame^] | 25 | #endif |