Skip to content

Expose renderer's memory saving mode to VisualObject#385

Merged
oitel merged 5 commits intomasterfrom
render_object_buffer_mode
Aug 22, 2022
Merged

Expose renderer's memory saving mode to VisualObject#385
oitel merged 5 commits intomasterfrom
render_object_buffer_mode

Conversation

@oitel
Copy link
Contributor

@oitel oitel commented Aug 22, 2022

No description provided.

@oitel oitel requested a review from Grantim August 22, 2022 11:20
Comment on lines +17 to +18
virtual BufferMode getBufferMode() const override { return bufferMode_; }
virtual void setBufferMode( BufferMode bufferMode ) override { bufferMode_ = bufferMode; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mb move this to IRenderObject?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to base class.

void updateSelectedEdgesBuffer_() const;

bool memorySavingMode_{ true };
BufferMode bufferMode_{ MemoryEfficient };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to base class.


IRenderObject::BufferMode VisualObject::getRenderBufferMode() const
{
return renderObj_->getBufferMode();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if ( renderObj_ )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.


void VisualObject::setRenderBufferMode( IRenderObject::BufferMode bufferMode )
{
renderObj_->setBufferMode( bufferMode );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if ( renderObj_ )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@oitel oitel merged commit 4291388 into master Aug 22, 2022
@oitel oitel deleted the render_object_buffer_mode branch August 22, 2022 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants