X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-graphics-program.h;h=3899bec63a0ef05f239bd2a07d382364b206a2ec;hp=2bd04de183c560852e379ce75d7e4bb3e8f2eda0;hb=7018f61b640b6fcf9cb576b537bafcb6bb8240e8;hpb=214aac69c6f01cd0544afe05e4c4d7060092b190 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..3899bec 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,43 @@ 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(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