Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: src/gpu/GrPathRenderer.cpp

Issue 98703002: Fix compilation with SK_ENABLE_INST_COUNT=1 (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrPath.cpp ('k') | src/gpu/GrPathRendererChain.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrPathRenderer.h" 9 #include "GrPathRenderer.h"
10 10
11 SK_DEFINE_INST_COUNT(GrPathRenderer)
12
13 GrPathRenderer::GrPathRenderer() { 11 GrPathRenderer::GrPathRenderer() {
14 } 12 }
15 13
16 void GrPathRenderer::GetPathDevBounds(const SkPath& path, 14 void GrPathRenderer::GetPathDevBounds(const SkPath& path,
17 int devW, int devH, 15 int devW, int devH,
18 const SkMatrix& matrix, 16 const SkMatrix& matrix,
19 SkRect* bounds) { 17 SkRect* bounds) {
20 if (path.isInverseFillType()) { 18 if (path.isInverseFillType()) {
21 *bounds = SkRect::MakeWH(SkIntToScalar(devW), SkIntToScalar(devH)); 19 *bounds = SkRect::MakeWH(SkIntToScalar(devW), SkIntToScalar(devH));
22 return; 20 return;
23 } 21 }
24 *bounds = path.getBounds(); 22 *bounds = path.getBounds();
25 matrix.mapRect(bounds); 23 matrix.mapRect(bounds);
26 } 24 }
OLDNEW
« no previous file with comments | « src/gpu/GrPath.cpp ('k') | src/gpu/GrPathRendererChain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698