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-gl-abstraction.cpp;h=02439bccec73c94989ebe0c8caa3cc07ebc3816d;hp=eaeef05bb4e6dff8ee83725af2efeb26102d0402;hb=d07dc4c4a6067ba3080184d862bca40a90d1789c;hpb=fa6279fb2830427d5ab569ca14e6ade1557ef2fa diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gl-abstraction.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gl-abstraction.cpp index eaeef05..02439bc 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gl-abstraction.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gl-abstraction.cpp @@ -1,18 +1,19 @@ -// -// 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) 2017 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. + * + */ #include "test-gl-abstraction.h" @@ -31,7 +32,7 @@ void TestGlAbstraction::Initialize() mCurrentProgram = 0; mCompileStatus = GL_TRUE; mLinkStatus = GL_TRUE; - + mNumberOfActiveUniforms = 0; mGetAttribLocationResult = 0; mGetErrorResult = 0; mGetStringResult = NULL; @@ -42,19 +43,22 @@ void TestGlAbstraction::Initialize() mIsRenderbufferResult = 0; mIsShaderResult = 0; mIsTextureResult = 0; - mVertexAttribArrayChanged = false; - + mActiveTextureUnit = 0; mCheckFramebufferStatusResult = 0; - mNumBinaryFormats = 1; - mBinaryFormats = 1; + mFramebufferStatus = 0; + mFramebufferColorAttached = 0; + mFramebufferDepthAttached = 0; + mFramebufferStencilAttached = 0; + mNumBinaryFormats = 0; + mBinaryFormats = 0; mProgramBinaryLength = 0; - mLastAutoTextureIdUsed = 0; + mVertexAttribArrayChanged = false; + mGetProgramBinaryCalled = false; - mLastShaderIdUsed = 0; - mLastProgramIdUsed = 0; - mLastUniformIdUsed = 0; mLastShaderCompiled = 0; + mLastClearBitMask = 0; + mClearCount = 0; mLastBlendEquationRgb = 0; mLastBlendEquationAlpha = 0; @@ -62,6 +66,12 @@ void TestGlAbstraction::Initialize() mLastBlendFuncDstRgb = 0; mLastBlendFuncSrcAlpha = 0; mLastBlendFuncDstAlpha = 0; + mLastAutoTextureIdUsed = 0; + mNumGeneratedTextures = 0; + mLastShaderIdUsed = 0; + mLastProgramIdUsed = 0; + mLastUniformIdUsed = 0; + mLastDepthMask = false; mUniforms.clear(); mProgramUniforms1i.clear(); @@ -69,6 +79,29 @@ void TestGlAbstraction::Initialize() mProgramUniforms2f.clear(); mProgramUniforms3f.clear(); mProgramUniforms4f.clear(); + + mCullFaceTrace.Reset(); + mDepthFunctionTrace.Reset(); + mEnableDisableTrace.Reset(); + mShaderTrace.Reset(); + mStencilFunctionTrace.Reset(); + mScissorTrace.Reset(); + mTextureTrace.Reset(); + mTexParamaterTrace.Reset(); + mDrawTrace.Reset(); + + for( unsigned int i=0; i