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

Unified Diff: src/core/SkScalar.cpp

Issue 1893433002: In SkDraw::drawRect, use SkPath for huge rects. Base URL: https://skia.googlesource.com/skia@fixed-assert
Patch Set: Created 4 years, 8 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 | « src/core/SkRect.cpp ('k') | src/core/SkScanPriv.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkScalar.cpp
diff --git a/src/core/SkScalar.cpp b/src/core/SkScalar.cpp
index 87a5073e14655744571ebfcf5bfbddbb6e4558d7..a303787aef916a8fc98726e3a3ccfa40556a43a5 100644
--- a/src/core/SkScalar.cpp
+++ b/src/core/SkScalar.cpp
@@ -9,6 +9,9 @@
#include "SkMath.h"
#include "SkScalar.h"
+static_assert(SK_MaxS32Scalar == SkIntToScalar(SkScalarTruncToInt(SK_MaxS32Scalar)),
+ "Value of SK_MaxS32Scalar is incorrect.");
+
SkScalar SkScalarInterpFunc(SkScalar searchKey, const SkScalar keys[],
const SkScalar values[], int length) {
SkASSERT(length > 0);
« no previous file with comments | « src/core/SkRect.cpp ('k') | src/core/SkScanPriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698