evas_object_intercept: Reduce calls to efl_data_scope_get
authorChristopher Michael <devilhorns@comcast.net>
Thu, 5 Mar 2020 13:24:46 +0000 (08:24 -0500)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 10 Mar 2020 10:48:49 +0000 (19:48 +0900)
commiteea926e296271c426766d1a7360aab71b9bfbb49
treeff77a33f402645be82067f2862ca2b31cd1db128
parent623cf19a9cfc724b3d2e98f592cc365d4b5ff8aa
evas_object_intercept: Reduce calls to efl_data_scope_get

Small patch to reduce the number of calls to efl_data_scope_get as per
mailing list discussion. Since the
EVAS_OBJECT_INTERCEPT_CALLBACK_DEFINE macro already retrieves the
protected data via efl_data_scope_get, we can just pass that
protected data directly to evas_object_intercept_init/deinit functions
without the need to refetch it.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D11449
src/lib/evas/canvas/evas_object_intercept.c