michael@0: /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "gfxPath.h" michael@0: #include "mozilla/gfx/2D.h" michael@0: michael@0: #include "cairo.h" michael@0: michael@0: using namespace mozilla::gfx; michael@0: michael@0: gfxPath::gfxPath(cairo_path_t* aPath) michael@0: : mPath(aPath) michael@0: { michael@0: } michael@0: michael@0: gfxPath::gfxPath(Path* aPath) michael@0: : mPath(nullptr) michael@0: , mMoz2DPath(aPath) michael@0: { michael@0: } michael@0: michael@0: gfxPath::~gfxPath() michael@0: { michael@0: cairo_path_destroy(mPath); michael@0: }