From 75a1f7d1af24bd3b12289cb089bb98d6fe595587 Mon Sep 17 00:00:00 2001 From: David Steele Date: Thu, 13 Jul 2017 15:35:07 +0100 Subject: [PATCH] Added tracking of texture count to test harness Change-Id: Ie00ceb75e2e8e1f7e2e8747548f6f0866b18d41c --- .../dali-test-suite-utils/test-gl-abstraction.cpp | 7 ++++--- .../dali-test-suite-utils/test-gl-abstraction.h | 14 +++++++++++++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.cpp b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.cpp index 6e9b9f0..c4bc01d 100644 --- a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.cpp +++ b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * 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. @@ -67,6 +67,7 @@ void TestGlAbstraction::Initialize() mLastBlendFuncSrcAlpha = 0; mLastBlendFuncDstAlpha = 0; mLastAutoTextureIdUsed = 0; + mNumGeneratedTextures = 0; mLastShaderIdUsed = 0; mLastProgramIdUsed = 0; mLastUniformIdUsed = 0; @@ -108,7 +109,7 @@ 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 +117,6 @@ 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; } diff --git a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.h b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.h index 5e71779..8408b10 100644 --- a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.h +++ b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gl-abstraction.h @@ -2,7 +2,7 @@ #define TEST_GL_ABSTRACTION_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * 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. @@ -426,6 +426,7 @@ public: paramName<<"texture["< mNextTextureIds; std::vector mDeletedTextureIds; std::vector mBoundTextures; -- 2.7.4