2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include "environment-options.h"
30 EnvironmentOptions::EnvironmentOptions()
32 mUpdateStatusFrequency(0),
33 mPerformanceLoggingLevel(0),
34 mPanGestureLoggingLevel(0),
39 EnvironmentOptions::~EnvironmentOptions()
43 void EnvironmentOptions::SetLogOptions( const Dali::Integration::Log::LogFunction& logFunction,
44 unsigned int logFrameRateFrequency,
45 unsigned int logupdateStatusFrequency,
46 unsigned int logPerformanceLevel,
47 unsigned int logPanGestureLevel )
49 mLogFunction = logFunction;
50 mFpsFrequency = logFrameRateFrequency;
51 mUpdateStatusFrequency = logupdateStatusFrequency;
52 mPerformanceLoggingLevel = logPerformanceLevel;
53 mPanGestureLoggingLevel = logPanGestureLevel;
56 void EnvironmentOptions::InstallLogFunction() const
58 Dali::Integration::Log::InstallLogFunction( mLogFunction );
61 void EnvironmentOptions::UnInstallLogFunction() const
63 Dali::Integration::Log::UninstallLogFunction();
66 unsigned int EnvironmentOptions::GetFrameRateLoggingFrequency() const
71 unsigned int EnvironmentOptions::GetUpdateStatusLoggingFrequency() const
73 return mUpdateStatusFrequency;
76 unsigned int EnvironmentOptions::GetPerformanceLoggingLevel() const
78 return mPerformanceLoggingLevel;
81 unsigned int EnvironmentOptions::GetPanGestureLoggingLevel() const
83 return mPanGestureLoggingLevel;
86 unsigned int EnvironmentOptions::GetPanGestureSmoothingMode() const
88 return mPanGesturePredictionMode;