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>2017-07-05 13:27:41 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-07-05 13:27:41 +0300
commitd37dd97e4551f9d7e9c728601d03cdd7b8706991 (patch)
treea4ea931a6004b215acbe2cfcabe8d7f617f6f125 /intern/cycles/device/device_split_kernel.h
parent58c456b12d4162632ca4506b46e5e194e6f720be (diff)
Cycles: Pass string by const reference rather than by value
Some of the functions might have been inlined, but others i don't see how that was possible (don't think virtual functions can be inlined here). In any case, better be explicitly optimal in the code.
Diffstat (limited to 'intern/cycles/device/device_split_kernel.h')
-rw-r--r--intern/cycles/device/device_split_kernel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/device/device_split_kernel.h b/intern/cycles/device/device_split_kernel.h
index 2bac1998cb7..9c42cb58520 100644
--- a/intern/cycles/device/device_split_kernel.h
+++ b/intern/cycles/device/device_split_kernel.h
@@ -125,7 +125,8 @@ public:
device_memory& use_queues_flag,
device_memory& work_pool_wgs) = 0;
- virtual SplitKernelFunction* get_split_kernel_function(string kernel_name, const DeviceRequestedFeatures&) = 0;
+ virtual SplitKernelFunction* get_split_kernel_function(const string& kernel_name,
+ const DeviceRequestedFeatures&) = 0;
virtual int2 split_kernel_local_size() = 0;
virtual int2 split_kernel_global_size(device_memory& kg, device_memory& data, DeviceTask *task) = 0;
};