Evas filters: Add padding info to filter runtime context

This commit is contained in:
Jean-Philippe Andre 2014-01-07 14:55:27 +09:00
parent 8441290767
commit 388a30950a
2 changed files with 7 additions and 1 deletions

View File

@ -1716,6 +1716,9 @@ evas_filter_context_program_use(Evas_Filter_Context *ctx, Evas_Object *eo_obj,
}
}
// Compute and save padding info
evas_filter_program_padding_get(pgm, &ctx->padl, &ctx->padr, &ctx->padt, &ctx->padb);
dc = ENFN->context_new(ENDT);
ENFN->context_color_set(ENDT, dc, 255, 255, 255, 255);

View File

@ -45,7 +45,10 @@ struct _Evas_Filter_Context
Eina_List *buffers; // Evas_Filter_Buffer *
int last_buffer_id;
int last_command_id;
int w, h; // Change at each run
// Variables changing at each run
int w, h; // Dimensions of the input/output buffers
int padl, padt, padr, padb; // Padding in the current input/output buffers
struct
{