diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-12-05 20:33:50 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-12-05 20:33:50 +0800 |
| commit | 5edaa008efabb1b97446bed2f6b542cf01eb3c70 (patch) | |
| tree | 96472d1b554634b0bafdd4d8d7ce22321a0e179d /include/cru/platform/graphics | |
| parent | 8dcca49f42627400773dcc707ebaa757cbeef37b (diff) | |
| download | cru-5edaa008efabb1b97446bed2f6b542cf01eb3c70.tar.gz cru-5edaa008efabb1b97446bed2f6b542cf01eb3c70.tar.bz2 cru-5edaa008efabb1b97446bed2f6b542cf01eb3c70.zip | |
Remove CRU_DEFINE_CLASS_LOG_TAG.
Diffstat (limited to 'include/cru/platform/graphics')
| -rw-r--r-- | include/cru/platform/graphics/cairo/CairoPainter.h | 5 | ||||
| -rw-r--r-- | include/cru/platform/graphics/direct2d/Painter.h | 4 | ||||
| -rw-r--r-- | include/cru/platform/graphics/quartz/Painter.h | 3 |
3 files changed, 9 insertions, 3 deletions
diff --git a/include/cru/platform/graphics/cairo/CairoPainter.h b/include/cru/platform/graphics/cairo/CairoPainter.h index 039cef60..4688a7ff 100644 --- a/include/cru/platform/graphics/cairo/CairoPainter.h +++ b/include/cru/platform/graphics/cairo/CairoPainter.h @@ -10,7 +10,10 @@ namespace cru::platform::graphics::cairo { class CRU_PLATFORM_GRAPHICS_CAIRO_API CairoPainter : public CairoResource, public virtual IPainter { - CRU_DEFINE_CLASS_LOG_TAG("cru::platform::graphics::cairo::CairoPainter") + private: + constexpr static auto kLogTag = + "cru::platform::graphics::cairo::CairoPainter"; + public: CairoPainter(CairoGraphicsFactory* factory, cairo_t* cairo, bool auto_release, cairo_surface_t* cairo_surface = nullptr); diff --git a/include/cru/platform/graphics/direct2d/Painter.h b/include/cru/platform/graphics/direct2d/Painter.h index b0998c6b..92edf657 100644 --- a/include/cru/platform/graphics/direct2d/Painter.h +++ b/include/cru/platform/graphics/direct2d/Painter.h @@ -10,7 +10,9 @@ class CRU_WIN_GRAPHICS_DIRECT_API D2DDeviceContextPainter : public DirectGraphicsResource, public virtual IPainter, public virtual IComResource<ID2D1DeviceContext1> { - CRU_DEFINE_CLASS_LOG_TAG("D2DDeviceContextPainter") + private: + constexpr static auto kLogTag = "D2DDeviceContextPainter"; + public: explicit D2DDeviceContextPainter(DirectGraphicsFactory* graphics_factory, ID2D1DeviceContext1* device_context, diff --git a/include/cru/platform/graphics/quartz/Painter.h b/include/cru/platform/graphics/quartz/Painter.h index 7e86222d..591e0c4b 100644 --- a/include/cru/platform/graphics/quartz/Painter.h +++ b/include/cru/platform/graphics/quartz/Painter.h @@ -9,7 +9,8 @@ namespace cru::platform::graphics::quartz { class QuartzCGContextPainter : public OsxQuartzResource, public virtual IPainter { - CRU_DEFINE_CLASS_LOG_TAG("QuartzCGContextPainter") + private: + constexpr static auto kLogTag = "QuartzCGContextPainter"; public: explicit QuartzCGContextPainter( |
