X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-gl-abstraction.h;h=47a5b3a7a345fe284987beff96813f059a2b3121;hb=1b26c32c4c0114c69e8dd7cd51280f284b8ded14;hp=c4c130402c849d121f54b15b4376d5d9f6440c91;hpb=fa6279fb2830427d5ab569ca14e6ade1557ef2fa;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gl-abstraction.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gl-abstraction.h index c4c1304..47a5b3a 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gl-abstraction.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gl-abstraction.h @@ -1,21 +1,22 @@ #ifndef __TEST_GL_ABSTRACTION_H__ #define __TEST_GL_ABSTRACTION_H__ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // EXTERNAL INCLUDES #include @@ -23,10 +24,10 @@ #include // INTERNAL INCLUDES -#include #include #include #include +#include #include "test-trace-call-stack.h" namespace Dali @@ -50,6 +51,9 @@ public: ~TestGlAbstraction(); void Initialize(); + void PreRender(); + void PostRender(unsigned int timeDelta); + /* OpenGL ES 2.0 */ inline void ActiveTexture( GLenum textureUnit ) @@ -129,6 +133,10 @@ public: mActiveTextures[ mActiveTextureUnit ].mBoundTextures.push_back( texture ); } } + + std::stringstream out; + out << target << ", " << texture; + mTextureTrace.PushCall("BindTexture", out.str()); } inline void BlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) @@ -471,6 +479,17 @@ public: *(textures+i) = ++mLastAutoTextureIdUsed; } } + + std::stringstream out; + for(int i=0; i