diff options
author | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-14 00:01:15 +0300 |
---|---|---|
committer | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-14 00:41:14 +0300 |
commit | 1c42d4930a24d639b3aa561b9a8b4bbce05977e0 (patch) | |
tree | 68c2aae3fd5ae98b78708bea28c0b55d3f4fb5f0 /source/blender/compositor/operations/COM_PreviewOperation.h | |
parent | a2ee3c3a9f01f5cb2f05f1e84a1b6c1931d9d4a4 (diff) |
Cleanup: convert camelCase naming to snake_case in Compositor
To convert old code to the current convention and
use a single code style.
Diffstat (limited to 'source/blender/compositor/operations/COM_PreviewOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_PreviewOperation.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/source/blender/compositor/operations/COM_PreviewOperation.h b/source/blender/compositor/operations/COM_PreviewOperation.h index 1df8815d62b..97d1884c9a7 100644 --- a/source/blender/compositor/operations/COM_PreviewOperation.h +++ b/source/blender/compositor/operations/COM_PreviewOperation.h @@ -28,7 +28,7 @@ namespace blender::compositor { class PreviewOperation : public MultiThreadedOperation { protected: - unsigned char *outputBuffer_; + unsigned char *output_buffer_; /** * \brief holds reference to the SDNA bNode, where this nodes will render the preview image for @@ -36,32 +36,32 @@ class PreviewOperation : public MultiThreadedOperation { bNodePreview *preview_; SocketReader *input_; float divider_; - unsigned int defaultWidth_; - unsigned int defaultHeight_; + unsigned int default_width_; + unsigned int default_height_; - const ColorManagedViewSettings *viewSettings_; - const ColorManagedDisplaySettings *displaySettings_; + const ColorManagedViewSettings *view_settings_; + const ColorManagedDisplaySettings *display_settings_; public: - PreviewOperation(const ColorManagedViewSettings *viewSettings, - const ColorManagedDisplaySettings *displaySettings, - unsigned int defaultWidth, - unsigned int defaultHeight); - void verifyPreview(bNodeInstanceHash *previews, bNodeInstanceKey key); + PreviewOperation(const ColorManagedViewSettings *view_settings, + const ColorManagedDisplaySettings *display_settings, + unsigned int default_width, + unsigned int default_height); + void verify_preview(bNodeInstanceHash *previews, bNodeInstanceKey key); - bool isOutputOperation(bool /*rendering*/) const override + bool is_output_operation(bool /*rendering*/) const override { return !G.background; } - void initExecution() override; - void deinitExecution() override; - eCompositorPriority getRenderPriority() const override; + void init_execution() override; + void deinit_execution() override; + eCompositorPriority get_render_priority() const override; - void executeRegion(rcti *rect, unsigned int tileNumber) override; + void execute_region(rcti *rect, unsigned int tile_number) override; void determine_canvas(const rcti &preferred_area, rcti &r_area) override; - bool determineDependingAreaOfInterest(rcti *input, - ReadBufferOperation *readOperation, - rcti *output) override; + bool determine_depending_area_of_interest(rcti *input, + ReadBufferOperation *read_operation, + rcti *output) override; void get_area_of_interest(int input_idx, const rcti &output_area, rcti &r_input_area) override; void update_memory_buffer_partial(MemoryBuffer *output, |