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=c098718294dbd2369e983d142faea0bb4f686661;hp=d5f5b85e877942cfe37ccd1a50ac4db4849b9ab0;hb=0e72d018e3fcf80e7ea319b0b888915b8d04e5c4;hpb=6c62f5aa91b434193d0fc11b7763ba7286372fc4;ds=sidebyside 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 d5f5b85..c098718 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); // For API const TestGraphicsReflection& GetReflection() const @@ -37,12 +37,12 @@ public: } // For tests - TestGraphicsReflection& GetProgamReflection() + TestGraphicsReflection& GetProgramReflection() { return mReflection; } - bool GetParameter(uint32_t parameterId, void* outData ); + bool GetParameter(uint32_t parameterId, void* outData); public: TestGlAbstraction& mGl; @@ -51,6 +51,30 @@ public: TestGraphicsReflection mReflection; }; +class TestGraphicsProgram : public Graphics::Program +{ +public: + TestGraphicsProgram(TestGlAbstraction& gl, const Graphics::ProgramCreateInfo& createInfo, Property::Array& vertexFormats); + 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