Changeset 106424 in webkit


Ignore:
Timestamp:
Jan 31, 2012 7:38:27 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Set content hint information for ewk_view_single.
https://bugs.webkit.org/show_bug.cgi?id=77319

Patch by KwangHyuk Kim <hyuki.kim@samsung.com> 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):

Location:
trunk/Source/WebKit/efl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/efl/ChangeLog

    r106330 r106424  
     12012-01-31  KwangHyuk Kim  <hyuki.kim@samsung.com>
     2
     3        [EFL] Set content hint information for ewk_view_single.
     4        https://bugs.webkit.org/show_bug.cgi?id=77319
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        The content hint information corresponding to opengl_x11 engine is set
     9        for the image object which ewk_view_single owns when evas is based on
     10        opengl_x11 engine.
     11
     12        * ewk/ewk_view_single.cpp:
     13        (_ewk_view_single_smart_backing_store_add):
     14
    1152012-01-30  Eunsol Park  <eunsol47.park@samsung.com>
    216
  • trunk/Source/WebKit/efl/ewk/ewk_view_single.cpp

    r106330 r106424  
    2626#include "ewk_private.h"
    2727
     28#include <Ecore_Evas.h>
    2829#include <Evas.h>
    2930#include <eina_safety_checks.h>
     
    5859{
    5960    Evas_Object* bs = evas_object_image_add(smartData->base.evas);
     61    EINA_SAFETY_ON_NULL_RETURN_VAL(bs, 0);
     62    const Ecore_Evas* ecoreEvas = ecore_evas_ecore_evas_get(smartData->base.evas);
     63    const char* engine = ecore_evas_engine_name_get(ecoreEvas);
     64    if (!strncmp(engine, "opengl_x11", strlen("opengl_x11")))
     65        evas_object_image_content_hint_set(bs, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
     66
    6067    evas_object_image_alpha_set(bs, false);
    6168    evas_object_image_smooth_scale_set(bs, smartData->zoom_weak_smooth_scale);
Note: See TracChangeset for help on using the changeset viewer.