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

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

Issue 19449002: Replace all instances of GrRect with SkRect. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months 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/GrAARectRenderer.cpp ('k') | src/gpu/GrClipMaskCache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1
2 /* 1 /*
3 * Copyright 2010 Google Inc. 2 * Copyright 2010 Google Inc.
4 * 3 *
5 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
8 7
9 #include "GrClipData.h" 8 #include "GrClipData.h"
9
10 #include "GrSurface.h" 10 #include "GrSurface.h"
11 #include "GrRect.h" 11 #include "SkRect.h"
12 12
13 /////////////////////////////////////////////////////////////////////////////// 13 ///////////////////////////////////////////////////////////////////////////////
14 14
15 /** 15 /**
16 * getConservativeBounds returns the conservative bounding box of the clip 16 * getConservativeBounds returns the conservative bounding box of the clip
17 * in device (as opposed to canvas) coordinates. If the bounding box is 17 * in device (as opposed to canvas) coordinates. If the bounding box is
18 * the result of purely intersections of rects (with an initial replace) 18 * the result of purely intersections of rects (with an initial replace)
19 * isIntersectionOfRects will be set to true. 19 * isIntersectionOfRects will be set to true.
20 */ 20 */
21 void GrClipData::getConservativeBounds(const GrSurface* surface, 21 void GrClipData::getConservativeBounds(const GrSurface* surface,
22 GrIRect* devResult, 22 SkIRect* devResult,
23 bool* isIntersectionOfRects) const { 23 bool* isIntersectionOfRects) const {
24 GrRect devBounds; 24 SkRect devBounds;
25 25
26 fClipStack->getConservativeBounds(-fOrigin.fX, 26 fClipStack->getConservativeBounds(-fOrigin.fX,
27 -fOrigin.fY, 27 -fOrigin.fY,
28 surface->width(), 28 surface->width(),
29 surface->height(), 29 surface->height(),
30 &devBounds, 30 &devBounds,
31 isIntersectionOfRects); 31 isIntersectionOfRects);
32 32
33 devBounds.roundOut(devResult); 33 devBounds.roundOut(devResult);
34 } 34 }
OLDNEW
« no previous file with comments | « src/gpu/GrAARectRenderer.cpp ('k') | src/gpu/GrClipMaskCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698