2011-08-16 15:45:58 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright 2011 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"
|
|
|
|
#include "GrContext.h"
|
2012-05-31 15:07:19 +00:00
|
|
|
#include "gl/GrGpuGL.h"
|
2011-08-16 15:45:58 +00:00
|
|
|
|
|
|
|
static void GLProgramsTest(skiatest::Reporter* reporter, GrContext* context) {
|
2012-05-31 15:07:19 +00:00
|
|
|
GrGpuGL* shadersGpu = static_cast<GrGpuGL*>(context->getGpu());
|
2011-08-16 15:45:58 +00:00
|
|
|
REPORTER_ASSERT(reporter, shadersGpu->programUnitTest());
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#include "TestClassDef.h"
|
|
|
|
DEFINE_GPUTESTCLASS("GLPrograms", GLProgramsTestClass, GLProgramsTest)
|
|
|
|
|