1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/src/gpu/GrPathRenderer.cpp Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 + 1.5 +/* 1.6 + * Copyright 2011 Google Inc. 1.7 + * 1.8 + * Use of this source code is governed by a BSD-style license that can be 1.9 + * found in the LICENSE file. 1.10 + */ 1.11 + 1.12 +#include "GrPathRenderer.h" 1.13 + 1.14 +GrPathRenderer::GrPathRenderer() { 1.15 +} 1.16 + 1.17 +void GrPathRenderer::GetPathDevBounds(const SkPath& path, 1.18 + int devW, int devH, 1.19 + const SkMatrix& matrix, 1.20 + SkRect* bounds) { 1.21 + if (path.isInverseFillType()) { 1.22 + *bounds = SkRect::MakeWH(SkIntToScalar(devW), SkIntToScalar(devH)); 1.23 + return; 1.24 + } 1.25 + *bounds = path.getBounds(); 1.26 + matrix.mapRect(bounds); 1.27 +}