Commit 2d5e2b5665b8359f5b389736d18c9a7b7c412fd9
Committed by
Gerrit Code Review
Merge "Remove batching from homescreen benchmark." into devel/master
Showing
1 changed file
with
1 additions
and
17 deletions
examples/homescreen-benchmark/homescreen-benchmark.cpp
| ... | ... | @@ -49,7 +49,6 @@ const float DEFAULT_OPT_ROW_COUNT ( 5 ); |
| 49 | 49 | const float DEFAULT_OPT_COL_COUNT ( 4 ); |
| 50 | 50 | const float DEFAULT_OPT_PAGE_COUNT ( 10 ); |
| 51 | 51 | const bool DEFAULT_OPT_USE_TABLEVIEW ( true ); |
| 52 | -const bool DEFAULT_OPT_BATCHING_ENABLED ( true ); | |
| 53 | 52 | const bool DEFAULT_OPT_ICON_LABELS ( true ); |
| 54 | 53 | const IconType DEFAULT_OPT_ICON_TYPE ( IMAGEVIEW ); |
| 55 | 54 | const bool DEFAULT_OPT_USE_TEXT_LABEL ( false ); |
| ... | ... | @@ -116,7 +115,6 @@ public: |
| 116 | 115 | mCols( DEFAULT_OPT_COL_COUNT ), |
| 117 | 116 | mPageCount( DEFAULT_OPT_PAGE_COUNT ), |
| 118 | 117 | mTableViewEnabled( DEFAULT_OPT_USE_TABLEVIEW ), |
| 119 | - mBatchingEnabled( DEFAULT_OPT_BATCHING_ENABLED ), | |
| 120 | 118 | mIconLabelsEnabled( DEFAULT_OPT_ICON_LABELS ), |
| 121 | 119 | mIconType( DEFAULT_OPT_ICON_TYPE ), |
| 122 | 120 | mUseTextLabel( DEFAULT_OPT_USE_TEXT_LABEL ) |
| ... | ... | @@ -127,7 +125,6 @@ public: |
| 127 | 125 | int mCols; |
| 128 | 126 | int mPageCount; |
| 129 | 127 | bool mTableViewEnabled; |
| 130 | - bool mBatchingEnabled; | |
| 131 | 128 | bool mIconLabelsEnabled; |
| 132 | 129 | IconType mIconType; |
| 133 | 130 | bool mUseTextLabel; |
| ... | ... | @@ -235,9 +232,6 @@ public: |
| 235 | 232 | imagePath << IMAGE_PATH_PREFIX << currentIconIndex << IMAGE_PATH_POSTFIX; |
| 236 | 233 | map[ Dali::Toolkit::ImageVisual::Property::URL ] = imagePath.str(); |
| 237 | 234 | |
| 238 | - // Enable/disable batching | |
| 239 | - map[ Toolkit::ImageVisual::Property::BATCHING_ENABLED ] = mConfig.mBatchingEnabled; | |
| 240 | - | |
| 241 | 235 | imageView.SetProperty( Toolkit::ImageView::Property::IMAGE, map ); |
| 242 | 236 | imageView.SetResizePolicy( ResizePolicy::SIZE_RELATIVE_TO_PARENT, Dimension::ALL_DIMENSIONS ); |
| 243 | 237 | imageView.SetSizeScalePolicy( SizeScalePolicy::FIT_WITH_ASPECT_RATIO ); |
| ... | ... | @@ -396,11 +390,6 @@ public: |
| 396 | 390 | page.SetAnchorPoint( AnchorPoint::CENTER ); |
| 397 | 391 | page.SetPosition( Vector3( stageSize.x * i, 0.0f, 0.0f ) ); |
| 398 | 392 | mScrollParent.Add( page ); |
| 399 | - | |
| 400 | - if( mConfig.mTableViewEnabled && mConfig.mBatchingEnabled ) | |
| 401 | - { | |
| 402 | - page.SetProperty( DevelActor::Property::BATCH_PARENT, true ); | |
| 403 | - } | |
| 404 | 393 | } |
| 405 | 394 | |
| 406 | 395 | mScrollParent.SetOpacity( 1.0f ); |
| ... | ... | @@ -476,8 +465,7 @@ void RunTest( Application& application, const HomescreenBenchmark::Config& confi |
| 476 | 465 | PrintHelp( "c<num>", " Number of columns" ); |
| 477 | 466 | PrintHelp( "r<num>", " Number of rows" ); |
| 478 | 467 | PrintHelp( "p<num>", " Number of pages ( must be greater than 1 )" ); |
| 479 | - PrintHelp( "-disable-tableview", " Disables the use of TableView for layouting (must be enabled for batching)" ); | |
| 480 | - PrintHelp( "-disable-batching", " Disables geometry batching" ); | |
| 468 | + PrintHelp( "-disable-tableview", " Disables the use of TableView for layouting" ); | |
| 481 | 469 | PrintHelp( "-disable-icon-labels", " Disables labels for each icon" ); |
| 482 | 470 | PrintHelp( "-use-checkbox", " Uses checkboxes for icons" ); |
| 483 | 471 | PrintHelp( "-use-text-label", " Uses TextLabel instead of a TextVisual" ); |
| ... | ... | @@ -514,10 +502,6 @@ int DALI_EXPORT_API main( int argc, char **argv ) |
| 514 | 502 | { |
| 515 | 503 | config.mTableViewEnabled = false; |
| 516 | 504 | } |
| 517 | - else if( arg.compare( "--disable-batching" ) == 0 ) | |
| 518 | - { | |
| 519 | - config.mBatchingEnabled = false; | |
| 520 | - } | |
| 521 | 505 | else if( arg.compare( "--disable-icon-labels" ) == 0 ) |
| 522 | 506 | { |
| 523 | 507 | config.mIconLabelsEnabled = false; | ... | ... |