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:
authorJeroen Bakker <jeroen@blender.org>2021-03-19 15:52:45 +0300
committerJeroen Bakker <jeroen@blender.org>2021-03-19 19:11:47 +0300
commit50c54354385a8b15e00b8f1538387ffc16773686 (patch)
tree787da698ef548a73e1c916f2063d7c089dbe975e /source/blender/compositor/intern/COM_ChunkOrder.h
parent18b87e2e0b9393b9a20733b2396277a48a0b0c5d (diff)
Cleanup: compositor - chunk order
No functional changes.
Diffstat (limited to 'source/blender/compositor/intern/COM_ChunkOrder.h')
-rw-r--r--source/blender/compositor/intern/COM_ChunkOrder.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/compositor/intern/COM_ChunkOrder.h b/source/blender/compositor/intern/COM_ChunkOrder.h
index 993622b346c..a634309f345 100644
--- a/source/blender/compositor/intern/COM_ChunkOrder.h
+++ b/source/blender/compositor/intern/COM_ChunkOrder.h
@@ -23,17 +23,17 @@
#endif
#include "COM_ChunkOrderHotspot.h"
-struct ChunkOrder {
- unsigned int number;
- int x;
- int y;
- double distance;
- ChunkOrder();
+/** Helper to determine the order how chunks are prioritized during execution. */
+struct ChunkOrder {
+ unsigned int index = 0;
+ int x = 0;
+ int y = 0;
+ double distance = 0.0;
friend bool operator<(const ChunkOrder &a, const ChunkOrder &b);
- void update_distance(ChunkOrderHotspot **hotspots, unsigned int len_hotspots);
+ void update_distance(ChunkOrderHotspot *hotspots, unsigned int len_hotspots);
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("COM:ChunkOrderHotspot")