aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/platform/graphics')
-rw-r--r--include/cru/platform/graphics/cairo/CairoPainter.h5
-rw-r--r--include/cru/platform/graphics/direct2d/Painter.h4
-rw-r--r--include/cru/platform/graphics/quartz/Painter.h3
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(