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

Unified Diff: Source/platform/graphics/GraphicsContext.h

Issue 332443003: Remove GraphicsContext::fastMod and ::isDrawingToLayer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.h
diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h
index eb7c47a053b40cfef5cc495703305198d07013dd..05e966890048207a8a61be87967cd84528cbd7f6 100644
--- a/Source/platform/graphics/GraphicsContext.h
+++ b/Source/platform/graphics/GraphicsContext.h
@@ -426,28 +426,11 @@ private:
static void draw2xMarker(SkBitmap*, int);
#endif
- // Return value % max, but account for value possibly being negative.
- static int fastMod(int value, int max)
- {
- bool isNeg = false;
- if (value < 0) {
- value = -value;
- isNeg = true;
- }
- if (value >= max)
- value %= max;
- if (isNeg)
- value = -value;
- return value;
- }
-
// Helpers for drawing a focus ring (drawFocusRing)
void drawOuterPath(const SkPath&, SkPaint&, int);
void drawInnerPath(const SkPath&, SkPaint&, int);
// SkCanvas wrappers.
- bool isDrawingToLayer() const { return m_canvas->isDrawingToLayer(); }
-
void clipPath(const SkPath&, AntiAliasingMode = NotAntiAliased, SkRegion::Op = SkRegion::kIntersect_Op);
void clipRRect(const SkRRect&, AntiAliasingMode = NotAntiAliased, SkRegion::Op = SkRegion::kIntersect_Op);
« no previous file with comments | « no previous file | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698