[M85 Migration] Add an evas gl option for rotation 81/245881/1
authorChandan Padhi <c.padhi@samsung.com>
Fri, 16 Oct 2020 11:37:20 +0000 (17:07 +0530)
committerChandan Padhi <c.padhi@samsung.com>
Mon, 19 Oct 2020 06:08:42 +0000 (06:08 +0000)
Adding EVAS_GL_OPTIONS_CLIENT_SIDE_ROTATION would enforce direct
rendering even if the canvas is rotated. In that case, it is the
application's role to rotate the contents of the Evas_GL view.

Reference: https://review.tizen.org/gerrit/220869

Change-Id: I3b04548919db3a4f8a23cca9a5924e083aad30bb
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
tizen_src/chromium_impl/content/browser/renderer_host/render_widget_host_view_efl.cc

index 499ff13..b882476 100644 (file)
@@ -418,7 +418,7 @@ void RenderWidgetHostViewEfl::Init_EvasGL(int width, int height) {
   evas_gl_config_ = evas_gl_config_new();
   evas_gl_config_->options_bits = (Evas_GL_Options_Bits)(
       EVAS_GL_OPTIONS_DIRECT | EVAS_GL_OPTIONS_DIRECT_MEMORY_OPTIMIZE |
-      EVAS_GL_OPTIONS_DIRECT_OVERRIDE);
+      EVAS_GL_OPTIONS_DIRECT_OVERRIDE | EVAS_GL_OPTIONS_CLIENT_SIDE_ROTATION);
   evas_gl_config_->color_format = EVAS_GL_RGBA_8888;
   evas_gl_config_->depth_bits = EVAS_GL_DEPTH_BIT_24;
   evas_gl_config_->stencil_bits = EVAS_GL_STENCIL_BIT_8;