Add onBackendCreated callback to Viewer
authorChristopher Dalton <csmartdalton@google.com>
Fri, 24 Feb 2017 20:22:53 +0000 (13:22 -0700)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 24 Feb 2017 22:37:34 +0000 (22:37 +0000)
commit443ec1b794ec5ec8a155a9cdc641e95a95914533
treee84d1b1e624d8344527086aca090af62950fe43d
parent0354c62e0bb89607a29ce2150e77e3308a795cc4
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>
16 files changed:
tools/viewer/ImageSlide.cpp
tools/viewer/SampleSlide.cpp
tools/viewer/SampleSlide.h
tools/viewer/Viewer.cpp
tools/viewer/Viewer.h
tools/viewer/sk_app/Window.cpp
tools/viewer/sk_app/Window.h
tools/viewer/sk_app/WindowContext.h
tools/viewer/sk_app/android/Window_android.cpp
tools/viewer/sk_app/mac/Window_mac.cpp
tools/viewer/sk_app/unix/GLWindowContext_unix.cpp
tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp
tools/viewer/sk_app/unix/WindowContextFactory_unix.h
tools/viewer/sk_app/unix/Window_unix.cpp
tools/viewer/sk_app/unix/Window_unix.h
tools/viewer/sk_app/win/Window_win.cpp