implement drawAtlas natively on gpu-device
BUG=skia:
Review URL: https://codereview.chromium.org/1216433002
diff --git a/samplecode/SampleAtlas.cpp b/samplecode/SampleAtlas.cpp
index adf3f5e..ed208c3 100644
--- a/samplecode/SampleAtlas.cpp
+++ b/samplecode/SampleAtlas.cpp
@@ -68,11 +68,13 @@
fVelocity.fX = -fVelocity.fX;
}
if (fCenter.fY > bounds.bottom()) {
- SkASSERT(fVelocity.fY > 0);
- fVelocity.fY = -fVelocity.fY;
+ if (fVelocity.fY > 0) {
+ fVelocity.fY = -fVelocity.fY;
+ }
} else if (fCenter.fY < bounds.top()) {
- SkASSERT(fVelocity.fY < 0);
- fVelocity.fY = -fVelocity.fY;
+ if (fVelocity.fY < 0) {
+ fVelocity.fY = -fVelocity.fY;
+ }
}
fScale += fDScale;