X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-graphics-program.h;h=3aae276de87658e4912a219a74c9e4846e0cd363;hb=580eea83bb02f8b936dc348ba4c1bee86df2500b;hp=2bd04de183c560852e379ce75d7e4bb3e8f2eda0;hpb=214aac69c6f01cd0544afe05e4c4d7060092b190;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-program.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-program.h index 2bd04de..3aae276 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-program.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-program.h @@ -24,10 +24,10 @@ namespace Dali { -class TestGraphicsProgram : public Graphics::Program +class TestGraphicsProgramImpl { public: - TestGraphicsProgram(TestGlAbstraction& gl, const Graphics::ProgramCreateInfo& createInfo, Property::Array& vertexFormats); + TestGraphicsProgramImpl(TestGlAbstraction& gl, const Graphics::ProgramCreateInfo& createInfo, Property::Array& vertexFormats, std::vector& customUniforms); // For API const TestGraphicsReflection& GetReflection() const @@ -37,17 +37,44 @@ public: } // For tests - TestGraphicsReflection& GetProgamReflection() + TestGraphicsReflection& GetProgramReflection() { return mReflection; } + bool GetParameter(uint32_t parameterId, void* outData); + public: TestGlAbstraction& mGl; + uint32_t mId; Graphics::ProgramCreateInfo mCreateInfo; TestGraphicsReflection mReflection; }; +class TestGraphicsProgram : public Graphics::Program +{ +public: + TestGraphicsProgram(TestGlAbstraction& gl, const Graphics::ProgramCreateInfo& createInfo, Property::Array& vertexFormats, std::vector& customUniforms); + TestGraphicsProgram(TestGraphicsProgramImpl* impl); + + const TestGraphicsReflection& GetReflection() const + { + return mImpl->GetReflection(); + } + bool GetParameter(uint32_t parameterId, void* outData) + { + return mImpl->GetParameter(parameterId, outData); + } + + TestGraphicsReflection& GetProgamReflection() + { + return mImpl->GetProgramReflection(); + } + +public: + TestGraphicsProgramImpl* mImpl; +}; + } // namespace Dali #endif //DALI_TEST_GRAPHICS_PROGRAM_H