From 58915a81a8d9408f1c765b75faa74e0880711268 Mon Sep 17 00:00:00 2001 From: Leon Scroggins III Date: Fri, 12 Jan 2018 13:25:40 -0500 Subject: [PATCH] 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 --- core/jni/android_view_SurfaceControl.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/core/jni/android_view_SurfaceControl.cpp b/core/jni/android_view_SurfaceControl.cpp index 5e5d59b8aacad..0ef5445afffc4 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); }