From: Leon Scroggins III Date: Fri, 12 Jan 2018 18:25:40 +0000 (-0500) Subject: Remove bogus SkASSERT X-Git-Tag: android-x86-9.0-r1~265^2~28^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=58915a81a8d9408f1c765b75faa74e0880711268;p=android-x86%2Fframeworks-base.git Remove bogus SkASSERT Test: No change in behavior, no new tests SkASSERT compiles to nothing in typical Android builds, but with SK_DEBUG defined it is an assert. This assert attempts to call a method that no longer exists. Remove it. Change-Id: I7047bb66c4cc0f0bdd6a84562247eed48944739e --- diff --git a/core/jni/android_view_SurfaceControl.cpp b/core/jni/android_view_SurfaceControl.cpp index 5e5d59b8aaca..0ef5445afffc 100644 --- a/core/jni/android_view_SurfaceControl.cpp +++ b/core/jni/android_view_SurfaceControl.cpp @@ -72,7 +72,6 @@ static struct { // Implements SkMallocPixelRef::ReleaseProc, to delete the screenshot on unref. void DeleteScreenshot(void* addr, void* context) { - SkASSERT(addr == ((ScreenshotClient*) context)->getPixels()); delete ((ScreenshotClient*) context); }