X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Fbase%2Fenvironment-options.cpp;h=c96edeb673da66d445b937348d9da205eaf24ef4;hb=1f2153d4febc92138f74ee6b51f2007255fb90b4;hp=b5e293cff9731db1c90a4455858300c82583bbe8;hpb=37d7b153fd7c46e7dc0a27934410c37afd5f118f;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/base/environment-options.cpp b/adaptors/base/environment-options.cpp index b5e293c..c96edeb 100644 --- a/adaptors/base/environment-options.cpp +++ b/adaptors/base/environment-options.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 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. @@ -101,11 +101,15 @@ EnvironmentOptions::EnvironmentOptions() mPanGestureSmoothingAmount(-1.0f), mPanMinimumDistance(-1), mPanMinimumEvents(-1), - mGlesCallTime(0), + mGlesCallTime( 0 ), mWindowWidth( 0 ), mWindowHeight( 0 ), mThreadingMode( ThreadingMode::COMBINED_UPDATE_RENDER ), mRenderRefreshRate( 1 ), + mGlesCallAccumulate( false ), + mMultiSamplingLevel( 0 ), + mMaxTextureSize( 0 ), + mIndicatorVisibleMode( -1 ), mLogFunction( NULL ) { ParseEnvironmentOptions(); @@ -227,6 +231,11 @@ int EnvironmentOptions::GetGlesCallTime() const return mGlesCallTime; } +bool EnvironmentOptions::GetGlesCallAccumulate() const +{ + return mGlesCallAccumulate; +} + const std::string& EnvironmentOptions::GetWindowName() const { return mWindowName; @@ -247,6 +256,21 @@ unsigned int EnvironmentOptions::GetRenderRefreshRate() const return mRenderRefreshRate; } +unsigned int EnvironmentOptions::GetMultiSamplingLevel() const +{ + return mMultiSamplingLevel; +} + +unsigned int EnvironmentOptions::GetMaxTextureSize() const +{ + return mMaxTextureSize; +} + +int EnvironmentOptions::GetIndicatorVisibleMode() const +{ + return mIndicatorVisibleMode; +} + bool EnvironmentOptions::PerformanceServerRequired() const { return ( ( GetPerformanceStatsLoggingOptions() > 0) || @@ -341,6 +365,12 @@ void EnvironmentOptions::ParseEnvironmentOptions() mGlesCallTime = glesCallTime; } + int glesCallAccumulate( 0 ); + if ( GetIntegerEnvironmentVariable( DALI_GLES_CALL_ACCUMULATE, glesCallAccumulate ) ) + { + mGlesCallAccumulate = glesCallAccumulate != 0; + } + int windowWidth(0), windowHeight(0); if ( GetIntegerEnvironmentVariable( DALI_WINDOW_WIDTH, windowWidth ) && GetIntegerEnvironmentVariable( DALI_WINDOW_HEIGHT, windowHeight ) ) { @@ -365,9 +395,7 @@ void EnvironmentOptions::ParseEnvironmentOptions() { switch( threadingMode ) { - case ThreadingMode::SEPARATE_UPDATE_RENDER: case ThreadingMode::COMBINED_UPDATE_RENDER: - case ThreadingMode::SINGLE_THREADED: { mThreadingMode = static_cast< ThreadingMode::Type >( threadingMode ); break; @@ -384,6 +412,33 @@ void EnvironmentOptions::ParseEnvironmentOptions() mRenderRefreshRate = renderRefreshRate; } } + + int multiSamplingLevel( 0 ); + if( GetIntegerEnvironmentVariable( DALI_ENV_MULTI_SAMPLING_LEVEL, multiSamplingLevel ) ) + { + if( multiSamplingLevel > 0 ) + { + mMultiSamplingLevel = multiSamplingLevel; + } + } + + int maxTextureSize( 0 ); + if( GetIntegerEnvironmentVariable( DALI_ENV_MAX_TEXTURE_SIZE, maxTextureSize ) ) + { + if( maxTextureSize > 0 ) + { + mMaxTextureSize = maxTextureSize; + } + } + + int indicatorVisibleMode( -1 ); + if( GetIntegerEnvironmentVariable( DALI_ENV_INDICATOR_VISIBLE_MODE, indicatorVisibleMode ) ) + { + if( indicatorVisibleMode > -1 ) + { + mIndicatorVisibleMode = indicatorVisibleMode; + } + } } } // Adaptor