diff options
Diffstat (limited to 'gfx/layers/LayersTypes.cpp')
-rw-r--r-- | gfx/layers/LayersTypes.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gfx/layers/LayersTypes.cpp b/gfx/layers/LayersTypes.cpp index 81ea1aa88f..392af31862 100644 --- a/gfx/layers/LayersTypes.cpp +++ b/gfx/layers/LayersTypes.cpp @@ -91,5 +91,17 @@ GpuProcessQueryId GpuProcessQueryId::GetNext() { return GpuProcessQueryId{++sCounter}; } +std::ostream& operator<<(std::ostream& os, ScrollDirection aDirection) { + switch (aDirection) { + case ScrollDirection::eHorizontal: + os << "horizontal"; + break; + case ScrollDirection::eVertical: + os << "vertical"; + break; + } + return os; +} + } // namespace layers } // namespace mozilla |