Index: tools/viewer/sk_app/android/surface_glue_android.cpp |
diff --git a/tools/viewer/sk_app/android/surface_glue_android.cpp b/tools/viewer/sk_app/android/surface_glue_android.cpp |
index 9e35407255f8956eea8d1496692d7684886a4ede..3a4fca539c8204489e381c4b6cba7c0fc0c261c6 100644 |
--- a/tools/viewer/sk_app/android/surface_glue_android.cpp |
+++ b/tools/viewer/sk_app/android/surface_glue_android.cpp |
@@ -77,11 +77,13 @@ void SkiaAndroidApp::paintIfNeeded() { |
} |
void SkiaAndroidApp::postMessage(const Message& message) const { |
- SkAssertResult(write(fPipes[1], &message, sizeof(message)) == sizeof(message)); |
+ SkDEBUGCODE(auto writeSize =) write(fPipes[1], &message, sizeof(message)); |
+ SkASSERT(writeSize == sizeof(message)); |
} |
void SkiaAndroidApp::readMessage(Message* message) const { |
- SkAssertResult(read(fPipes[0], message, sizeof(Message)) == sizeof(Message)); |
+ SkDEBUGCODE(auto readSize =) read(fPipes[0], message, sizeof(Message)); |
+ SkASSERT(readSize == sizeof(Message)); |
} |
void SkiaAndroidApp::inval() { |