diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/compositor/operations/COM_PreviewOperation.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/compositor/operations/COM_PreviewOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_PreviewOperation.h | 51 |
1 files changed, 30 insertions, 21 deletions
diff --git a/source/blender/compositor/operations/COM_PreviewOperation.h b/source/blender/compositor/operations/COM_PreviewOperation.h index 76b03b09731..6560db727a8 100644 --- a/source/blender/compositor/operations/COM_PreviewOperation.h +++ b/source/blender/compositor/operations/COM_PreviewOperation.h @@ -25,31 +25,40 @@ #include "BKE_global.h" class PreviewOperation : public NodeOperation { -protected: - unsigned char *m_outputBuffer; + protected: + unsigned char *m_outputBuffer; - /** - * \brief holds reference to the SDNA bNode, where this nodes will render the preview image for - */ - bNodePreview *m_preview; - SocketReader *m_input; - float m_divider; + /** + * \brief holds reference to the SDNA bNode, where this nodes will render the preview image for + */ + bNodePreview *m_preview; + SocketReader *m_input; + float m_divider; - const ColorManagedViewSettings *m_viewSettings; - const ColorManagedDisplaySettings *m_displaySettings; -public: - PreviewOperation(const ColorManagedViewSettings *viewSettings, const ColorManagedDisplaySettings *displaySettings); - void verifyPreview(bNodeInstanceHash *previews, bNodeInstanceKey key); + const ColorManagedViewSettings *m_viewSettings; + const ColorManagedDisplaySettings *m_displaySettings; - bool isOutputOperation(bool /*rendering*/) const { return !G.background; } - void initExecution(); - void deinitExecution(); - CompositorPriority getRenderPriority() const; + public: + PreviewOperation(const ColorManagedViewSettings *viewSettings, + const ColorManagedDisplaySettings *displaySettings); + void verifyPreview(bNodeInstanceHash *previews, bNodeInstanceKey key); - void executeRegion(rcti *rect, unsigned int tileNumber); - void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); - bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output); - bool isPreviewOperation() const { return true; } + bool isOutputOperation(bool /*rendering*/) const + { + return !G.background; + } + void initExecution(); + void deinitExecution(); + CompositorPriority getRenderPriority() const; + void executeRegion(rcti *rect, unsigned int tileNumber); + void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); + bool determineDependingAreaOfInterest(rcti *input, + ReadBufferOperation *readOperation, + rcti *output); + bool isPreviewOperation() const + { + return true; + } }; #endif |