[EFL] Modify type of both col and row parameters for backing store's internal api.

https://bugs.webkit.org/show_bug.cgi?id=65302

As both col and row parameter's type for both _ewk_tiled_backing_store_item_fill
and ewk_tiled_backing_store_item_add are different from each other, I modify type of them.

Patch by KwangHyuk Kim <hyuki.kim@samsung.com> on 2011-08-19
Reviewed by Adam Roben.

* ewk/ewk_tiled_backing_store.c:
(_ewk_tiled_backing_store_item_fill):
(_ewk_tiled_backing_store_item_add):

git-svn-id: svn://svn.chromium.org/blink/trunk@93399 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent be64dd3b
2011-08-19 KwangHyuk Kim <hyuki.kim@samsung.com>
[EFL] Modify type of both col and row parameters for backing store's internal api.
https://bugs.webkit.org/show_bug.cgi?id=65302
As both col and row parameter's type for both _ewk_tiled_backing_store_item_fill
and ewk_tiled_backing_store_item_add are different from each other, I modify type of them.
Reviewed by Adam Roben.
* ewk/ewk_tiled_backing_store.c:
(_ewk_tiled_backing_store_item_fill):
(_ewk_tiled_backing_store_item_add):
2011-08-18 Ryuan Choi <ryuan.choi@samsung.com> 2011-08-18 Ryuan Choi <ryuan.choi@samsung.com>
[EFL] Broken rendering occured when resized in ewk_view_single. [EFL] Broken rendering occured when resized in ewk_view_single.
......
...@@ -424,16 +424,13 @@ static Eina_Bool _ewk_tiled_backing_store_enable_render(Ewk_Tiled_Backing_Store_ ...@@ -424,16 +424,13 @@ static Eina_Bool _ewk_tiled_backing_store_enable_render(Ewk_Tiled_Backing_Store_
return EINA_TRUE; return EINA_TRUE;
} }
static inline Eina_Bool _ewk_tiled_backing_store_item_fill(Ewk_Tiled_Backing_Store_Data *priv, Ewk_Tiled_Backing_Store_Item *it, long col, int row) static inline Eina_Bool _ewk_tiled_backing_store_item_fill(Ewk_Tiled_Backing_Store_Data *priv, Ewk_Tiled_Backing_Store_Item *it, unsigned long col, unsigned long row)
{ {
long m_col = priv->model.base.col + col; unsigned long m_col = priv->model.base.col + col;
long m_row = priv->model.base.row + row; unsigned long m_row = priv->model.base.row + row;
double last_used = ecore_loop_time_get(); double last_used = ecore_loop_time_get();
if (m_col < 0 || m_row < 0 if (m_col >= priv->model.cur.cols || m_row >= priv->model.cur.rows) {
|| (unsigned long)(m_col) >= priv->model.cur.cols
|| (unsigned long)(m_row) >= priv->model.cur.rows) {
if (it->tile) if (it->tile)
_ewk_tiled_backing_store_tile_dissociate(priv, it, last_used); _ewk_tiled_backing_store_tile_dissociate(priv, it, last_used);
} else { } else {
...@@ -442,20 +439,14 @@ static inline Eina_Bool _ewk_tiled_backing_store_item_fill(Ewk_Tiled_Backing_Sto ...@@ -442,20 +439,14 @@ static inline Eina_Bool _ewk_tiled_backing_store_item_fill(Ewk_Tiled_Backing_Sto
if (it->tile) { if (it->tile) {
Ewk_Tile *old = it->tile; Ewk_Tile *old = it->tile;
if (old->row != (unsigned long)(m_row) if (old->row != m_row || old->col != m_col || old->zoom != zoom)
|| old->col != (unsigned long)(m_col) _ewk_tiled_backing_store_tile_dissociate(priv, it, last_used);
|| old->zoom != zoom) { else if (old->row == m_row && old->col == m_col && old->zoom == zoom)
_ewk_tiled_backing_store_tile_dissociate(priv, it,
last_used);
} else if (old->row == (unsigned long)(m_row)
&& old->col == (unsigned long)(m_col)
&& old->zoom == zoom)
goto end; goto end;
} }
t = ewk_tile_matrix_tile_exact_get t = ewk_tile_matrix_tile_exact_get(priv->model.matrix, m_col, m_row, zoom);
(priv->model.matrix, m_col, m_row, zoom);
if (!t) { if (!t) {
/* NOTE: it never returns NULL if it->tile was set! */ /* NOTE: it never returns NULL if it->tile was set! */
if (it->tile) { if (it->tile) {
...@@ -486,7 +477,7 @@ static inline Eina_Bool _ewk_tiled_backing_store_item_fill(Ewk_Tiled_Backing_Sto ...@@ -486,7 +477,7 @@ static inline Eina_Bool _ewk_tiled_backing_store_item_fill(Ewk_Tiled_Backing_Sto
return EINA_TRUE; return EINA_TRUE;
} }
static Ewk_Tiled_Backing_Store_Item *_ewk_tiled_backing_store_item_add(Ewk_Tiled_Backing_Store_Data *priv, long col, int row) static Ewk_Tiled_Backing_Store_Item *_ewk_tiled_backing_store_item_add(Ewk_Tiled_Backing_Store_Data *priv, unsigned long col, unsigned long row)
{ {
Ewk_Tiled_Backing_Store_Item *it; Ewk_Tiled_Backing_Store_Item *it;
Evas_Coord x, y, tw, th; Evas_Coord x, y, tw, th;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment