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

Side by Side Diff: include/core/SkRRect.h

Issue 1722483003: make transformed rrect radii fit rectangle (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | src/core/SkRRect.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 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 #ifndef SkRRect_DEFINED 8 #ifndef SkRRect_DEFINED
9 #define SkRRect_DEFINED 9 #define SkRRect_DEFINED
10 10
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 SkRect fRect; 319 SkRect fRect;
320 // Radii order is UL, UR, LR, LL. Use Corner enum to index into fRadii[] 320 // Radii order is UL, UR, LR, LL. Use Corner enum to index into fRadii[]
321 SkVector fRadii[4]; 321 SkVector fRadii[4];
322 // use an explicitly sized type so we're sure the class is dense (no uniniti alized bytes) 322 // use an explicitly sized type so we're sure the class is dense (no uniniti alized bytes)
323 int32_t fType; 323 int32_t fType;
324 // TODO: add padding so we can use memcpy for flattening and not copy 324 // TODO: add padding so we can use memcpy for flattening and not copy
325 // uninitialized data 325 // uninitialized data
326 326
327 void computeType(); 327 void computeType();
328 bool checkCornerContainment(SkScalar x, SkScalar y) const; 328 bool checkCornerContainment(SkScalar x, SkScalar y) const;
329 void scaleRadii();
329 330
330 // to access fRadii directly 331 // to access fRadii directly
331 friend class SkPath; 332 friend class SkPath;
332 }; 333 };
333 334
334 #endif 335 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkRRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698