Fix for black screen in long text mail
authoruzair jaleel <uzair.jaleel@samsung.com>
Thu, 12 Jun 2014 12:17:30 +0000 (17:47 +0530)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Issue: CBGRAPHICS-339
Change-Id: I0c2d40e3f06d98b4b0b4bcc38f29c40dc6b96a3b

tizen_src/impl/browser/renderer_host/render_widget_host_view_efl.cc

index 5cb37a7..f69f4c5 100644 (file)
@@ -56,6 +56,9 @@
 #define EFL_MAX_WIDTH 10000
 #define EFL_MAX_HEIGHT 10000  // borrowed from GTK+ port
 
+#define MAX_SURFACE_WIDTH_EGL 4096 //max supported Framebuffer width
+#define MAX_SURFACE_HEIGHT_EGL 4096 //max supported Framebuffer height
+
 namespace content {
 
 void RenderWidgetHostViewBase::GetDefaultScreenInfo(blink::WebScreenInfo* results) {
@@ -254,6 +257,12 @@ void RenderWidgetHostViewEfl::Init_EvasGL(int width, int height) {
     LOG(INFO) << "set_eweb_view -- Create evas gl context Success";
   }
 
+  if(width > MAX_SURFACE_WIDTH_EGL)
+    width = MAX_SURFACE_WIDTH_EGL;
+
+  if(height > MAX_SURFACE_HEIGHT_EGL)
+    height = MAX_SURFACE_HEIGHT_EGL;
+
   evas_gl_surface_ = evas_gl_surface_create(evas_gl_, evas_gl_config_, width, height);
   if (!evas_gl_surface_) {
     LOG(ERROR) << "set_eweb_view -- Create evas gl Surface Fail";