From 27111a9c2708b9d554f0a7184c11ed058d10375c Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Mon, 29 Sep 2014 14:15:18 +0100 Subject: [PATCH] Bug 1073960 - Mark DrawTarget::GetFormat() as const. r=Bas --- gfx/2d/2D.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/2d/2D.h b/gfx/2d/2D.h index 4f4da1517b3a..678fb05904bc 100644 --- a/gfx/2d/2D.h +++ b/gfx/2d/2D.h @@ -992,7 +992,7 @@ public: inline void ConcatTransform(const Matrix &aTransform) { SetTransform(aTransform * Matrix(GetTransform())); } - SurfaceFormat GetFormat() { return mFormat; } + SurfaceFormat GetFormat() const { return mFormat; } /** Tries to get a native surface for a DrawTarget, this may fail if the * draw target cannot convert to this surface type.