aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar liyuqian <liyuqian@google.com>2016-05-20 12:41:49 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-20 12:41:49 -0700
commit17b4a109219d063dc10a988b1ed46aaefe278477 (patch)
tree26fdcd37b773f66279bad72b218cc6096479e92c
parentbeb1c67c9d332b41b306b292bb77a0e1566c32a8 (diff)
Save comparisons for release.
-rw-r--r--tools/viewer/sk_app/android/surface_glue_android.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/viewer/sk_app/android/surface_glue_android.cpp b/tools/viewer/sk_app/android/surface_glue_android.cpp
index 9e35407255..3a4fca539c 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() {