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

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

Issue 2251573002: Implement difference clip rects with window rectangles (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: return type Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright 2010 Google Inc. 2 * Copyright 2010 Google Inc.
3 * 3 *
4 * 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
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrClip.h" 8 #include "GrClip.h"
9 9
10 #include "GrAppliedClip.h"
10 #include "GrDrawContext.h" 11 #include "GrDrawContext.h"
11 12
12 void GrNoClip::getConservativeBounds(int width, int height, SkIRect* devResult, 13 void GrNoClip::getConservativeBounds(int width, int height, SkIRect* devResult,
13 bool* isIntersectionOfRects) const { 14 bool* isIntersectionOfRects) const {
14 devResult->setXYWH(0, 0, width, height); 15 devResult->setXYWH(0, 0, width, height);
15 if (isIntersectionOfRects) { 16 if (isIntersectionOfRects) {
16 *isIntersectionOfRects = true; 17 *isIntersectionOfRects = true;
17 } 18 }
18 } 19 }
19 20
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 out->addScissor(tightScissor); 53 out->addScissor(tightScissor);
53 } 54 }
54 } 55 }
55 56
56 if (fHasStencilClip) { 57 if (fHasStencilClip) {
57 out->addStencilClip(); 58 out->addStencilClip();
58 } 59 }
59 60
60 return true; 61 return true;
61 } 62 }
OLDNEW
« src/gpu/GrCaps.cpp ('K') | « src/gpu/GrCaps.cpp ('k') | src/gpu/GrClipStackClip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698