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

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

Issue 2058753002: Display JPGs in Viewer with Split Screen and ColorSpaceXform (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Unmerge Created 4 years, 6 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 | « tools/viewer/Viewer.cpp ('k') | 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/RasterWindowContext_android.cpp
diff --git a/tools/viewer/sk_app/android/RasterWindowContext_android.cpp b/tools/viewer/sk_app/android/RasterWindowContext_android.cpp
index 3ba564635e2da2aeca87af682d3c6846e6185938..5e1e351b9ae0593311f68cf423b50648ea67acf5 100644
--- a/tools/viewer/sk_app/android/RasterWindowContext_android.cpp
+++ b/tools/viewer/sk_app/android/RasterWindowContext_android.cpp
@@ -36,7 +36,7 @@ RasterWindowContext_android::RasterWindowContext_android(
}
void RasterWindowContext_android::setBuffersGeometry() {
- int32_t format;
+ int32_t format = 0;
switch(fDisplayParams.fColorType) {
case kRGBA_8888_SkColorType:
format = WINDOW_FORMAT_RGBA_8888;
@@ -45,7 +45,7 @@ void RasterWindowContext_android::setBuffersGeometry() {
format = WINDOW_FORMAT_RGB_565;
break;
default:
- SkDEBUGFAIL("Unsupported Android color type");
+ SK_ABORT("Unsupported Android color type");
}
ANativeWindow_setBuffersGeometry(fNativeWindow, fWidth, fHeight, format);
}
« no previous file with comments | « tools/viewer/Viewer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698