[Bf-blender-cvs] [b4fb3db559c] master: OpenSubdiv: Cleanup, remove unused PatchBuffer class

Sergey Sharybin noreply at git.blender.org
Wed Oct 30 15:17:51 CET 2019


Commit: b4fb3db559ccd79e06a44ee9605f969bf8ef7d57
Author: Sergey Sharybin
Date:   Wed Oct 16 11:18:36 2019 +0200
Branches: master
https://developer.blender.org/rBb4fb3db559ccd79e06a44ee9605f969bf8ef7d57

OpenSubdiv: Cleanup, remove unused PatchBuffer class

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

M	intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc

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

diff --git a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc
index c870df7ab5d..d2cd366ba11 100644
--- a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc
+++ b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc
@@ -65,29 +65,6 @@ namespace opensubdiv_capi {
 
 namespace {
 
-// Helper class to wrap numerous of patch coordinates into a buffer.
-// Used to pass coordinates to the CPU evaluator. Other evaluators are not
-// supported.
-class PatchCoordBuffer : public vector<PatchCoord> {
- public:
-  PatchCoord *BindCpuBuffer()
-  {
-    return reinterpret_cast<PatchCoord *>(&(*this)[0]);
-  }
-
-  int GetNumVertices()
-  {
-    return size();
-  }
-
-  void UpdateData(const PatchCoord *patch_coords, int num_patch_coords)
-  {
-    memcpy(&(*this)[0],
-           reinterpret_cast<const void *>(patch_coords),
-           sizeof(PatchCoord) * num_patch_coords);
-  }
-};
-
 // Helper class to wrap single of patch coord into a buffer. Used to pass
 // coordinates to the CPU evaluator. Other evaluators are not supported.
 class SinglePatchCoordBuffer {



More information about the Bf-blender-cvs mailing list