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

Unified Diff: samplecode/SampleAtlas.cpp

Issue 1211583003: add drawImageNine (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: uniformly check for null-pixelref Created 5 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
Index: samplecode/SampleAtlas.cpp
diff --git a/samplecode/SampleAtlas.cpp b/samplecode/SampleAtlas.cpp
index adf3f5e3a4655dc91a140f5fa88bc9410c70ab0c..93fc90f10a1b4510693f57e75d63c17e2b83aaa3 100644
--- a/samplecode/SampleAtlas.cpp
+++ b/samplecode/SampleAtlas.cpp
@@ -68,7 +68,7 @@ class DrawAtlasDrawable : public SkDrawable {
fVelocity.fX = -fVelocity.fX;
}
if (fCenter.fY > bounds.bottom()) {
robertphillips 2015/06/25 15:53:21 ??
reed1 2015/06/25 19:12:29 reverting
- SkASSERT(fVelocity.fY > 0);
+// SkASSERT(fVelocity.fY > 0);
fVelocity.fY = -fVelocity.fY;
} else if (fCenter.fY < bounds.top()) {
SkASSERT(fVelocity.fY < 0);

Powered by Google App Engine
This is Rietveld 408576698