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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h

Issue 1536803003: Drop SkPathContainsPoint in favor of SkPath::contains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Less ugly. Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2006,2007,2008, Google Inc. All rights reserved. 2 * Copyright (c) 2006,2007,2008, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 case SkPath::kWinding_FillType: 86 case SkPath::kWinding_FillType:
87 case SkPath::kEvenOdd_FillType: 87 case SkPath::kEvenOdd_FillType:
88 return static_cast<WindRule>(fillType); 88 return static_cast<WindRule>(fillType);
89 default: 89 default:
90 ASSERT_NOT_REACHED(); 90 ASSERT_NOT_REACHED();
91 break; 91 break;
92 } 92 }
93 return RULE_NONZERO; 93 return RULE_NONZERO;
94 } 94 }
95 95
96 // Determine if a given WebKit point is contained in a path
97 bool SkPathContainsPoint(const SkPath&, const FloatPoint&, SkPath::FillType);
98
99 SkMatrix PLATFORM_EXPORT affineTransformToSkMatrix(const AffineTransform&); 96 SkMatrix PLATFORM_EXPORT affineTransformToSkMatrix(const AffineTransform&);
100 97
101 bool nearlyIntegral(float value); 98 bool nearlyIntegral(float value);
102 99
103 InterpolationQuality limitInterpolationQuality(const GraphicsContext&, Interpola tionQuality resampling); 100 InterpolationQuality limitInterpolationQuality(const GraphicsContext&, Interpola tionQuality resampling);
104 101
105 InterpolationQuality computeInterpolationQuality( 102 InterpolationQuality computeInterpolationQuality(
106 float srcWidth, 103 float srcWidth,
107 float srcHeight, 104 float srcHeight,
108 float destWidth, 105 float destWidth,
(...skipping 14 matching lines...) Expand all
123 inline SkCanvas::SrcRectConstraint WebCoreClampingModeToSkiaRectConstraint(Image ::ImageClampingMode clampMode) 120 inline SkCanvas::SrcRectConstraint WebCoreClampingModeToSkiaRectConstraint(Image ::ImageClampingMode clampMode)
124 { 121 {
125 return clampMode == Image::ClampImageToSourceRect 122 return clampMode == Image::ClampImageToSourceRect
126 ? SkCanvas::kStrict_SrcRectConstraint 123 ? SkCanvas::kStrict_SrcRectConstraint
127 : SkCanvas::kFast_SrcRectConstraint; 124 : SkCanvas::kFast_SrcRectConstraint;
128 } 125 }
129 126
130 } // namespace blink 127 } // namespace blink
131 128
132 #endif // SkiaUtils_h 129 #endif // SkiaUtils_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Path.cpp ('k') | third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698