michael@0: michael@0: /* michael@0: * Copyright 2011 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: #include "GrPathRenderer.h" michael@0: michael@0: GrPathRenderer::GrPathRenderer() { michael@0: } michael@0: michael@0: void GrPathRenderer::GetPathDevBounds(const SkPath& path, michael@0: int devW, int devH, michael@0: const SkMatrix& matrix, michael@0: SkRect* bounds) { michael@0: if (path.isInverseFillType()) { michael@0: *bounds = SkRect::MakeWH(SkIntToScalar(devW), SkIntToScalar(devH)); michael@0: return; michael@0: } michael@0: *bounds = path.getBounds(); michael@0: matrix.mapRect(bounds); michael@0: }