Title: [106424] trunk/Source/WebKit/efl
- Revision
- 106424
- Author
- [email protected]
- Date
- 2012-01-31 19:38:27 -0800 (Tue, 31 Jan 2012)
Log Message
[EFL] Set content hint information for ewk_view_single.
https://bugs.webkit.org/show_bug.cgi?id=77319
Patch by KwangHyuk Kim <[email protected]> on 2012-01-31
Reviewed by Ryosuke Niwa.
The content hint information corresponding to opengl_x11 engine is set
for the image object which ewk_view_single owns when evas is based on
opengl_x11 engine.
* ewk/ewk_view_single.cpp:
(_ewk_view_single_smart_backing_store_add):
Modified Paths
Diff
Modified: trunk/Source/WebKit/efl/ChangeLog (106423 => 106424)
--- trunk/Source/WebKit/efl/ChangeLog 2012-02-01 03:23:12 UTC (rev 106423)
+++ trunk/Source/WebKit/efl/ChangeLog 2012-02-01 03:38:27 UTC (rev 106424)
@@ -1,3 +1,17 @@
+2012-01-31 KwangHyuk Kim <[email protected]>
+
+ [EFL] Set content hint information for ewk_view_single.
+ https://bugs.webkit.org/show_bug.cgi?id=77319
+
+ Reviewed by Ryosuke Niwa.
+
+ The content hint information corresponding to opengl_x11 engine is set
+ for the image object which ewk_view_single owns when evas is based on
+ opengl_x11 engine.
+
+ * ewk/ewk_view_single.cpp:
+ (_ewk_view_single_smart_backing_store_add):
+
2012-01-30 Eunsol Park <[email protected]>
[EFL] Define the names of view smart class
Modified: trunk/Source/WebKit/efl/ewk/ewk_view_single.cpp (106423 => 106424)
--- trunk/Source/WebKit/efl/ewk/ewk_view_single.cpp 2012-02-01 03:23:12 UTC (rev 106423)
+++ trunk/Source/WebKit/efl/ewk/ewk_view_single.cpp 2012-02-01 03:38:27 UTC (rev 106424)
@@ -25,6 +25,7 @@
#include "ewk_logging.h"
#include "ewk_private.h"
+#include <Ecore_Evas.h>
#include <Evas.h>
#include <eina_safety_checks.h>
#include <string.h>
@@ -57,6 +58,12 @@
static Evas_Object* _ewk_view_single_smart_backing_store_add(Ewk_View_Smart_Data* smartData)
{
Evas_Object* bs = evas_object_image_add(smartData->base.evas);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(bs, 0);
+ const Ecore_Evas* ecoreEvas = ecore_evas_ecore_evas_get(smartData->base.evas);
+ const char* engine = ecore_evas_engine_name_get(ecoreEvas);
+ if (!strncmp(engine, "opengl_x11", strlen("opengl_x11")))
+ evas_object_image_content_hint_set(bs, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
+
evas_object_image_alpha_set(bs, false);
evas_object_image_smooth_scale_set(bs, smartData->zoom_weak_smooth_scale);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes