[M108 Migration][MM] Clean codes in esplusplayer_util. 01/290201/3
authorSun-woo Nam <sunny.nam@samsung.com>
Tue, 21 Mar 2023 09:04:19 +0000 (02:04 -0700)
committerBot Blink <blinkbot@samsung.com>
Wed, 22 Mar 2023 03:59:26 +0000 (03:59 +0000)
commit9a855abd34c22abc379d5af6cca79373378f77ea
tree2249deaf52d87385542234b80c7bf55b3bd77913
parent7b5e57daff0d8107d5d67654e0f4b6d2fd04416d
[M108 Migration][MM] Clean codes in esplusplayer_util.

It improves readability and reduces unnecessary compiles and errors.

1. Grouping together return values with the same value in a switch statement.
2. Use gfx::Size instead of using width and height separately.
3. Change const to constexpr for performance.

Reference:
https://review.tizen.org/gerrit/#/c/287778/

Change-Id: Ied8dbfcdab4df0112c64cbf7d457be3d59918652
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
tizen_src/chromium_impl/media/filters/esplusplayer_util.cc
tizen_src/chromium_impl/media/filters/esplusplayer_util.h
tizen_src/chromium_impl/media/filters/media_player_esplusplayer.cc