Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1081)

Unified Diff: tools/viewer/sk_app/android/surface_glue_android.cpp

Issue 1997003003: Save comparisons for release. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: ASSERT Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698