blob: 7e333f9bdcbeb86236c0ce8c7d78d409d0ebd538 [file] [log] [blame]
bsalomon@google.coma8e686e2011-08-16 15:45:58 +00001
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.comcf8fb1f2012-08-02 14:03:32 +00009// This is a GPU-backend specific test
10#if SK_SUPPORT_GPU
11
bsalomon@google.coma8e686e2011-08-16 15:45:58 +000012#include "Test.h"
13#include "GrContext.h"
bsalomon@google.com5739d2c2012-05-31 15:07:19 +000014#include "gl/GrGpuGL.h"
bsalomon@google.coma8e686e2011-08-16 15:45:58 +000015
16static void GLProgramsTest(skiatest::Reporter* reporter, GrContext* context) {
bsalomon@google.com5739d2c2012-05-31 15:07:19 +000017 GrGpuGL* shadersGpu = static_cast<GrGpuGL*>(context->getGpu());
bsalomon@google.coma8e686e2011-08-16 15:45:58 +000018 REPORTER_ASSERT(reporter, shadersGpu->programUnitTest());
19}
20
21
22#include "TestClassDef.h"
23DEFINE_GPUTESTCLASS("GLPrograms", GLProgramsTestClass, GLProgramsTest)
24
bsalomon@google.comcf8fb1f2012-08-02 14:03:32 +000025#endif