From e3e23f774697782424647d8a12792dbc768501ad Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 19 May 2015 21:03:24 +0500 Subject: ImBuf: Make luminance calculation inlined Title actually tells it all, it is rather simple function which totally makes sense to be inlined. This gives up to 5% of speedup when updating scopes for a large image. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D1310 --- source/blender/imbuf/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/imbuf/CMakeLists.txt') diff --git a/source/blender/imbuf/CMakeLists.txt b/source/blender/imbuf/CMakeLists.txt index c95f0abf3ca..abbc5a09040 100644 --- a/source/blender/imbuf/CMakeLists.txt +++ b/source/blender/imbuf/CMakeLists.txt @@ -46,6 +46,7 @@ set(SRC intern/bmp.c intern/cache.c intern/colormanagement.c + intern/colormanagement_inline.c intern/divers.c intern/filetype.c intern/filter.c @@ -187,4 +188,10 @@ if(WIN32) ) endif() +# no need to compile object files for inline headers. +set_source_files_properties( + intern/colormanagement_inline.c + PROPERTIES HEADER_FILE_ONLY TRUE +) + blender_add_lib(bf_imbuf "${SRC}" "${INC}" "${INC_SYS}") -- cgit v1.2.3