[M76 Migration] Enable MSAA sample count for Canvas2D. 69/222169/1
authorsuyambu.rm <suyambu.rm@samsung.com>
Mon, 30 Dec 2019 06:24:31 +0000 (22:24 -0800)
committerSuyambulingam R M <suyambu.rm@samsung.com>
Fri, 10 Jan 2020 05:36:37 +0000 (05:36 +0000)
This helps skia to use accelerated rendering for canvas2d.
This change also removes unwanted canvas command line flags.

Reference: https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/203296

Change-Id: I8ef938f68b77a1e72ac7eb57e12679da633fa8dc
Signed-off-by: suyambu.rm <suyambu.rm@samsung.com>
(cherry picked from commit fe15cb8a166b69b9d74e9a210310d37c32357a3a)

tizen_src/chromium_impl/efl/init.cc
tizen_src/ewk/efl_integration/command_line_efl.cc

index 2941cc1..2bdfa61 100644 (file)
@@ -100,10 +100,6 @@ void AppendPortParams(base::CommandLine& cmdline) {
 #if !defined(OS_TIZEN)
   cmdline.AppendSwitch(switches::kIgnoreGpuBlacklist);
 #endif
-
-  if (IsTvProfile()) {
-    cmdline.AppendSwitchASCII(switches::kAcceleratedCanvas2dMSAASampleCount, "4");
-  }
 }
 
 }  // namespace efl
index 573710e..d95fe15 100644 (file)
@@ -64,14 +64,12 @@ content::MainFunctionParams CommandLineEfl::GetDefaultPortParams() {
 #endif
 
 #if defined(OS_TIZEN)
+  p_command_line->AppendSwitchASCII(
+      switches::kAcceleratedCanvas2dMSAASampleCount, "4");
 #if !defined(EWK_BRINGUP)
   p_command_line->AppendSwitch(switches::kEnableGestureTapHighlight);
   p_command_line->AppendSwitch(switches::kEnableSpatialNavigation);
   p_command_line->AppendSwitch(switches::kMainFrameResizesAreOrientationChanges);
-  p_command_line->AppendSwitch(switches::kForceAccelerated2dCanvas);
-// [M44_2403] Temporary disabling the codes for switching to new chromium
-//            FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14040
-  p_command_line->AppendSwitch(cc::switches::kEnableParallelCanvasMode);
 #endif // EWK_BRINGUP
 #endif
 
@@ -82,9 +80,6 @@ content::MainFunctionParams CommandLineEfl::GetDefaultPortParams() {
         switches::kTouchEventFeatureDetectionEnabled);
 #if !defined(EWK_BRINGUP)
     p_command_line->AppendSwitch(switches::kEnablePinch);
-    // [M42_2231] FIXME: Need Parallel Canvas patch for S-Chromium/S-Blink/S-Skia
-    p_command_line->AppendSwitchASCII(
-        switches::kAcceleratedCanvas2dMSAASampleCount, "4");
 #endif
   }