X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-gl-abstraction.cpp;h=98a2fa5116d2e33498cc6e94ac6d3f442c7430ab;hb=dc996235ed9d5a4b75c01d05834dc6de73b5d921;hp=6e9b9f0e92d06d8513abb0b5bb67be858ffb53b2;hpb=4c9152e53ad2cc0f85c35288599c103192ed98d6;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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 6e9b9f0..98a2fa5 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,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -46,9 +46,10 @@ void TestGlAbstraction::Initialize() mActiveTextureUnit = 0; mCheckFramebufferStatusResult = 0; mFramebufferStatus = 0; - mFramebufferColorAttached = 0; mFramebufferDepthAttached = 0; mFramebufferStencilAttached = 0; + mFramebufferColorAttachmentCount = 0; + mFrameBufferColorStatus = 0; mNumBinaryFormats = 0; mBinaryFormats = 0; mProgramBinaryLength = 0; @@ -58,6 +59,7 @@ void TestGlAbstraction::Initialize() mLastShaderCompiled = 0; mLastClearBitMask = 0; + mLastClearColor = Color::TRANSPARENT; mClearCount = 0; mLastBlendEquationRgb = 0; @@ -67,6 +69,7 @@ void TestGlAbstraction::Initialize() mLastBlendFuncSrcAlpha = 0; mLastBlendFuncDstAlpha = 0; mLastAutoTextureIdUsed = 0; + mNumGeneratedTextures = 0; mLastShaderIdUsed = 0; mLastProgramIdUsed = 0; mLastUniformIdUsed = 0; @@ -84,6 +87,7 @@ void TestGlAbstraction::Initialize() mEnableDisableTrace.Reset(); mShaderTrace.Reset(); mStencilFunctionTrace.Reset(); + mScissorTrace.Reset(); mTextureTrace.Reset(); mTexParamaterTrace.Reset(); mDrawTrace.Reset(); @@ -102,13 +106,23 @@ void TestGlAbstraction::PostRender() { } +bool TestGlAbstraction::IsSurfacelessContextSupported() const +{ + return true; +} + +bool TestGlAbstraction::TextureRequiresConverting( const GLenum imageGlFormat, const GLenum textureGlFormat, const bool isSubImage ) const +{ + return ( ( imageGlFormat == GL_RGB ) && ( textureGlFormat == GL_RGBA ) ); +} + } // Namespace dali bool BlendEnabled(const Dali::TraceCallStack& callStack) { std::stringstream out; out << GL_BLEND; - bool blendEnabled = callStack.FindMethodAndParams("Enable", out.str()); + bool blendEnabled = callStack.FindMethodAndParams( "Enable", out.str() ); return blendEnabled; } @@ -116,6 +130,7 @@ bool BlendDisabled(const Dali::TraceCallStack& callStack) { std::stringstream out; out << GL_BLEND; - bool blendEnabled = callStack.FindMethodAndParams("Disable", out.str()); + bool blendEnabled = callStack.FindMethodAndParams( "Disable", out.str() ); return blendEnabled; } +