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),
35 mPanGesturePredictionMode(-1),
40 EnvironmentOptions::~EnvironmentOptions()
44 void EnvironmentOptions::SetLogOptions( const Dali::Integration::Log::LogFunction& logFunction,
45 unsigned int logFrameRateFrequency,
46 unsigned int logupdateStatusFrequency,
47 unsigned int logPerformanceLevel,
48 unsigned int logPanGestureLevel )
50 mLogFunction = logFunction;
51 mFpsFrequency = logFrameRateFrequency;
52 mUpdateStatusFrequency = logupdateStatusFrequency;
53 mPerformanceLoggingLevel = logPerformanceLevel;
54 mPanGestureLoggingLevel = logPanGestureLevel;
57 void EnvironmentOptions::InstallLogFunction() const
59 Dali::Integration::Log::InstallLogFunction( mLogFunction );
62 void EnvironmentOptions::UnInstallLogFunction() const
64 Dali::Integration::Log::UninstallLogFunction();
67 unsigned int EnvironmentOptions::GetFrameRateLoggingFrequency() const
72 unsigned int EnvironmentOptions::GetUpdateStatusLoggingFrequency() const
74 return mUpdateStatusFrequency;
77 unsigned int EnvironmentOptions::GetPerformanceLoggingLevel() const
79 return mPerformanceLoggingLevel;
82 unsigned int EnvironmentOptions::GetPanGestureLoggingLevel() const
84 return mPanGestureLoggingLevel;
87 unsigned int EnvironmentOptions::GetPanGestureSmoothingMode() const
89 return mPanGesturePredictionMode;