OSDN Git Service

Remove bogus SkASSERT
authorLeon Scroggins III <scroggo@google.com>
Fri, 12 Jan 2018 18:25:40 +0000 (13:25 -0500)
committerLeon Scroggins III <scroggo@google.com>
Fri, 12 Jan 2018 18:25:40 +0000 (13:25 -0500)
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

index 5e5d59b..0ef5445 100644 (file)
@@ -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);
 }