[Bf-blender-cvs] [d715a2ae093] profiler-editor: fixes

Jacques Lucke noreply at git.blender.org
Thu Apr 29 11:30:47 CEST 2021


Commit: d715a2ae093dc91e35e3010ea781850e74e25c1c
Author: Jacques Lucke
Date:   Tue Apr 27 15:46:56 2021 +0200
Branches: profiler-editor
https://developer.blender.org/rBd715a2ae093dc91e35e3010ea781850e74e25c1c

fixes

===================================================================

M	source/blender/editors/space_profiler/CMakeLists.txt
M	source/blender/editors/space_profiler/profiler_runtime.cc
M	source/blender/editors/space_profiler/profiler_runtime.hh

===================================================================

diff --git a/source/blender/editors/space_profiler/CMakeLists.txt b/source/blender/editors/space_profiler/CMakeLists.txt
index 0353ac1d39f..54c68917513 100644
--- a/source/blender/editors/space_profiler/CMakeLists.txt
+++ b/source/blender/editors/space_profiler/CMakeLists.txt
@@ -29,9 +29,11 @@ set(INC
 set(SRC
   profiler_layout.cc
   profiler_profile.cc
+  profiler_runtime.cc
   space_profiler.cc
 
   profiler_layout.hh
+  profiler_runtime.hh
 )
 
 set(LIB
diff --git a/source/blender/editors/space_profiler/profiler_runtime.cc b/source/blender/editors/space_profiler/profiler_runtime.cc
index 1da114106a4..9e3361828f2 100644
--- a/source/blender/editors/space_profiler/profiler_runtime.cc
+++ b/source/blender/editors/space_profiler/profiler_runtime.cc
@@ -18,6 +18,10 @@
 
 namespace blender::ed::profiler {
 
+SpaceProfilerListener::SpaceProfilerListener(SpaceProfiler_Runtime &runtime) : runtime_(&runtime)
+{
+}
+
 void SpaceProfilerListener::handle(const RecordedProfile &profile)
 {
   if (!runtime_->profile_layout) {
diff --git a/source/blender/editors/space_profiler/profiler_runtime.hh b/source/blender/editors/space_profiler/profiler_runtime.hh
index c90e53a8ce3..3da781839c3 100644
--- a/source/blender/editors/space_profiler/profiler_runtime.hh
+++ b/source/blender/editors/space_profiler/profiler_runtime.hh
@@ -20,6 +20,8 @@
 
 #include "profiler_layout.hh"
 
+#include "DNA_space_types.h"
+
 namespace blender::ed::profiler {
 
 class SpaceProfilerListener : public profile::ProfileListener {
@@ -27,9 +29,7 @@ class SpaceProfilerListener : public profile::ProfileListener {
   SpaceProfiler_Runtime *runtime_;
 
  public:
-  SpaceProfilerListener(SpaceProfiler_Runtime &runtime) : runtime_(&runtime)
-  {
-  }
+  SpaceProfilerListener(SpaceProfiler_Runtime &runtime);
 
   void handle(const RecordedProfile &profile) final;
 };



More information about the Bf-blender-cvs mailing list