commit | 443ec1b794ec5ec8a155a9cdc641e95a95914533 | [log] [tgz] |
---|---|---|
author | Christopher Dalton <csmartdalton@google.com> | Fri Feb 24 13:22:53 2017 -0700 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Feb 24 22:37:34 2017 +0000 |
tree | e84d1b1e624d8344527086aca090af62950fe43d | |
parent | 0354c62e0bb89607a29ce2150e77e3308a795cc4 [diff] [blame] |
Add onBackendCreated callback to Viewer Also removes fWidth and fHeight from Window and instead calls into WindowContent to get these values. BUG=skia: Change-Id: I72ee506004b7da73db9abb607a3bc82edfcf7d43 Reviewed-on: https://skia-review.googlesource.com/8795 Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com> Reviewed-by: Yuqian Li <liyuqian@google.com>
diff --git a/tools/viewer/ImageSlide.cpp b/tools/viewer/ImageSlide.cpp index dd7adba..8ff7d18 100644 --- a/tools/viewer/ImageSlide.cpp +++ b/tools/viewer/ImageSlide.cpp
@@ -20,6 +20,7 @@ } void ImageSlide::draw(SkCanvas* canvas) { + SkASSERT(fImage); canvas->drawImage(fImage, 0, 0); }