Bug 1528328. Remove unused gfxContext::GetDeviceTransform()
authorJeff Muizelaar <jrmuizel@gmail.com>
Fri, 15 Feb 2019 13:10:03 -0500
changeset 459641 ffbcb7c99a7e8e862ae6819b9e8052092d39b93c
parent 459640 02bef0e09a3c8d32b7fc48a909e51a357e7b5325
child 459642 b3364830f5a3baa6ea7ca128b81ac30496507073
push id35564
push userccoroiu@mozilla.com
push dateSat, 16 Feb 2019 09:37:16 +0000
treeherdermozilla-central@7ab4a0c9980f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1528328
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1528328. Remove unused gfxContext::GetDeviceTransform()
gfx/thebes/gfxContext.cpp
gfx/thebes/gfxContext.h
--- a/gfx/thebes/gfxContext.cpp
+++ b/gfx/thebes/gfxContext.cpp
@@ -871,19 +871,14 @@ Rect gfxContext::GetAzureDeviceSpaceClip
 Point gfxContext::GetDeviceOffset() const {
   return CurrentState().deviceOffset;
 }
 
 void gfxContext::SetDeviceOffset(const Point& aOffset) {
   CurrentState().deviceOffset = aOffset;
 }
 
-Matrix gfxContext::GetDeviceTransform() const {
-  return Matrix::Translation(-CurrentState().deviceOffset.x,
-                             -CurrentState().deviceOffset.y);
-}
-
 Matrix gfxContext::GetDTTransform() const {
   Matrix mat = mTransform;
   mat._31 -= CurrentState().deviceOffset.x;
   mat._32 -= CurrentState().deviceOffset.y;
   return mat;
 }
--- a/gfx/thebes/gfxContext.h
+++ b/gfx/thebes/gfxContext.h
@@ -520,17 +520,16 @@ class gfxContext final {
   // This ensures mPath contains a valid path (in user space!)
   void EnsurePath();
   // This ensures mPathBuilder contains a valid PathBuilder (in user space!)
   void EnsurePathBuilder();
   CompositionOp GetOp();
   void ChangeTransform(const mozilla::gfx::Matrix& aNewMatrix,
                        bool aUpdatePatternTransform = true);
   Rect GetAzureDeviceSpaceClipBounds() const;
-  Matrix GetDeviceTransform() const;
   Matrix GetDTTransform() const;
 
   bool mPathIsRect;
   bool mTransformChanged;
   Matrix mPathTransform;
   Rect mRect;
   RefPtr<PathBuilder> mPathBuilder;
   RefPtr<Path> mPath;