Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-05-19 19:03:24 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-01-25 16:13:52 +0300
commite3e23f774697782424647d8a12792dbc768501ad (patch)
tree5c37c3e91aa2536edb2eb3a54a7ad051fbfb33fb /source/blender/imbuf/CMakeLists.txt
parent83c9109926677b6b6a75ccb36ae0017733e8c8a2 (diff)
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
Diffstat (limited to 'source/blender/imbuf/CMakeLists.txt')
-rw-r--r--source/blender/imbuf/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
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}")