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

Side by Side Diff: src/core/SkRect.cpp

Issue 947443003: Move clip off of draw target (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback inc Created 5 years, 9 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
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrAAHairLinePathRenderer.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 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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
10 #include "SkRect.h" 9 #include "SkRect.h"
11 10
12 void SkIRect::join(int32_t left, int32_t top, int32_t right, int32_t bottom) { 11 void SkIRect::join(int32_t left, int32_t top, int32_t right, int32_t bottom) {
13 // do nothing if the params are empty 12 // do nothing if the params are empty
14 if (left >= right || top >= bottom) { 13 if (left >= right || top >= bottom) {
15 return; 14 return;
16 } 15 }
17 16
18 // if we are empty, just assign 17 // if we are empty, just assign
19 if (fLeft >= fRight || fTop >= fBottom) { 18 if (fLeft >= fRight || fTop >= fBottom) {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 SkString strL, strT, strR, strB; 154 SkString strL, strT, strR, strB;
156 SkAppendScalarDec(&strL, fLeft); 155 SkAppendScalarDec(&strL, fLeft);
157 SkAppendScalarDec(&strT, fTop); 156 SkAppendScalarDec(&strT, fTop);
158 SkAppendScalarDec(&strR, fRight); 157 SkAppendScalarDec(&strR, fRight);
159 SkAppendScalarDec(&strB, fBottom); 158 SkAppendScalarDec(&strB, fBottom);
160 line.printf("SkRect::MakeLTRB(%s, %s, %s, %s);", 159 line.printf("SkRect::MakeLTRB(%s, %s, %s, %s);",
161 strL.c_str(), strT.c_str(), strR.c_str(), strB.c_str()); 160 strL.c_str(), strT.c_str(), strR.c_str(), strB.c_str());
162 } 161 }
163 SkDebugf("%s\n", line.c_str()); 162 SkDebugf("%s\n", line.c_str());
164 } 163 }
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrAAHairLinePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698