diff options
author | Stan Iliev <stani@google.com> | 2017-07-18 16:41:48 -0400 |
---|---|---|
committer | Stan Iliev <stani@google.com> | 2017-07-18 16:41:48 -0400 |
commit | 18b388d67b041d0a12a75db4c8e2940b9a270f1b (patch) | |
tree | aa9036d4241931c3b12547db5c7a8b6988f93a00 /libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp | |
parent | a554ba6e2ebc320e9227a0302c8079c0f2cb9e85 (diff) |
Fix incorrect asserts
Fix a few Skia asserts, which prevent HWUI from compiling and
running when SkDebug is defined.
Test: Built and ran Android on device.
Change-Id: Ie7f16016ba105e1d376c266c5b030e4bc04629d9
Diffstat (limited to 'libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp')
-rw-r--r-- | libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp b/libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp index 975f849c7071..374d364787de 100644 --- a/libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp +++ b/libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp @@ -51,8 +51,6 @@ void StartReorderBarrierDrawable::onDraw(SkCanvas* canvas) { return aZValue < bZValue; }); - SkASSERT(!mChildren.empty()); - size_t drawIndex = 0; const size_t endIndex = mChildren.size(); while (drawIndex < endIndex) { @@ -76,7 +74,6 @@ EndReorderBarrierDrawable::EndReorderBarrierDrawable(StartReorderBarrierDrawable void EndReorderBarrierDrawable::onDraw(SkCanvas* canvas) { auto& zChildren = mStartBarrier->mChildren; - SkASSERT(!zChildren.empty()); /** * Draw shadows and (potential) casters mostly in order, but allow the shadows of casters |