2007-04-16 13:18:32 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2012-05-21 04:12:37 -07:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-04-16 13:18:32 -07:00
|
|
|
|
|
|
|
#include "gfxPath.h"
|
2013-10-14 20:23:21 -07:00
|
|
|
#include "mozilla/gfx/2D.h"
|
2007-04-16 13:18:32 -07:00
|
|
|
|
|
|
|
#include "cairo.h"
|
|
|
|
|
2013-10-14 20:23:21 -07:00
|
|
|
using namespace mozilla::gfx;
|
|
|
|
|
2013-10-14 20:23:21 -07:00
|
|
|
gfxPath::gfxPath(cairo_path_t* aPath)
|
|
|
|
: mPath(aPath)
|
2007-04-16 13:18:32 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-10-14 20:23:21 -07:00
|
|
|
gfxPath::gfxPath(Path* aPath)
|
|
|
|
: mPath(nullptr)
|
|
|
|
, mMoz2DPath(aPath)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2008-07-18 11:26:02 -07:00
|
|
|
gfxPath::~gfxPath()
|
2007-04-16 13:18:32 -07:00
|
|
|
{
|
|
|
|
cairo_path_destroy(mPath);
|
|
|
|
}
|