Cleanup: Move draw_manager_profiling to C++ #107508

Merged
Hans Goudey merged 6 commits from Hong-Shin/blender:cppify-draw-manager into main 2023-05-03 14:31:04 +02:00
Contributor

See: #103343

See: #103343
Hong-Shin added 1 commit 2023-05-01 18:55:29 +02:00
Hong-Shin requested review from Hans Goudey 2023-05-01 18:55:38 +02:00

I not sure if this is still wip, so:
void DRW_stats_group_end(void);, NULL, ... other things also need to be changed?

I not sure if this is still wip, so: `void DRW_stats_group_end(void);`, `NULL`, ... other things also need to be changed?
Hans Goudey requested changes 2023-05-01 19:03:59 +02:00
Hans Goudey left a comment
Member

Thanks for putting the C++ conversion in a separate commit. Ideally the PR/commit message would reference #103343 (also to check that everything from there has been dealt with). Looks like the change is missing clang format.

Thanks for putting the C++ conversion in a separate commit. Ideally the PR/commit message would reference #103343 (also to check that everything from there has been dealt with). Looks like the change is missing clang format.
@ -0,0 +28,4 @@
void DRW_stats_query_start(const char *name);
void DRW_stats_query_end(void);
struct rcti;
Member

It's not clear that this forward declaration needs to move.

It's not clear that this forward declaration needs to move.
Author
Contributor

rcti is used below, so I moved it to be closer to where its used. No worries though - we can keep this delta minimal and revert this

`rcti` is used below, so I moved it to be closer to where its used. No worries though - we can keep this delta minimal and revert this
Member

Usually all the forward includes are kept at the top of a file. Not sure if that's just Blender's convention or if it's in the style guide though.

Usually all the forward includes are kept at the top of a file. Not sure if that's just Blender's convention or if it's in the style guide though.
Hong-Shin added 1 commit 2023-05-01 19:05:45 +02:00
Hong-Shin added 2 commits 2023-05-01 19:11:07 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
77762f78dd
revert rtci
Member

@blender-bot build

@blender-bot build
Hans Goudey requested changes 2023-05-02 14:26:44 +02:00
Hans Goudey left a comment
Member

The test failures on the builds are unrelated, but I see an error in the Windows build:
C:\Users\blender\git\blender-vexp\blender.git\source\blender\draw\intern\draw_manager_profiling.cc(220): error C4576: a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax

The test failures on the builds are unrelated, but I see an error in the Windows build: `C:\Users\blender\git\blender-vexp\blender.git\source\blender\draw\intern\draw_manager_profiling.cc(220): error C4576: a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax`
Hong-Shin added 1 commit 2023-05-02 18:12:43 +02:00
Author
Contributor

Thanks for the heads up! Fixed.

Thanks for the heads up! Fixed.
Hong-Shin added 1 commit 2023-05-02 18:14:16 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
ccbf7365c1
formatting
Member

@blender-bot build

@blender-bot build
Hans Goudey changed title from Cleanup: cppify draw_manager and draw_manager_profiling to Cleanup: Move draw_manager_profiling to C++ 2023-05-02 19:02:38 +02:00
Hans Goudey approved these changes 2023-05-02 19:03:16 +02:00
Hans Goudey left a comment
Member

The test failure on the bot is unrelated, this looks okay now. I'll just add @fclem as a reviewer to make sure this doesn't conflict with his work.

The test failure on the bot is unrelated, this looks okay now. I'll just add @fclem as a reviewer to make sure this doesn't conflict with his work.
Hans Goudey requested review from Clément Foucault 2023-05-02 19:03:24 +02:00
Hans Goudey added this to the EEVEE & Viewport project 2023-05-02 19:03:34 +02:00
Clément Foucault approved these changes 2023-05-03 11:10:02 +02:00
Hans Goudey merged commit 743f57e95e into main 2023-05-03 14:31:04 +02:00
Hong-Shin deleted branch cppify-draw-manager 2023-05-03 17:39:33 +02:00
Howard Trickey referenced this issue from a commit 2023-05-29 02:51:42 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#107508
No description provided.