experimental/editor: app layer: setTitle

Change-Id: I8f8aec909f85e3bc99f6b0c9887ba513b17e00c4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/223925
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
This commit is contained in:
Hal Canary 2019-06-26 12:11:31 -04:00 committed by Skia Commit-Bot
parent b3c9745911
commit 43e97165d2

View File

@ -295,6 +295,7 @@ struct EditorApplication : public sk_app::Application {
fLayer.inval();
fLayer.loadFile(path);
fWindow->pushLayer(&fLayer);
fWindow->setTitle(SkStringPrintf("Editor: \"%s\"", fLayer.fPath.c_str()).c_str());
fWindow->show();
fLayer.onResize(fWindow->width(), fWindow->height());
#ifdef SK_EDITOR_DEBUG_OUT