From 63a470227beed0de553d769724e0108808391e42 Mon Sep 17 00:00:00 2001 From: kkinnunen Date: Tue, 30 Dec 2014 23:03:56 -0800 Subject: debugger: Make draw command image widget resize Make draw command image widget resize. The widget was not resizing, effectively preventing the window from being resized smaller. Make the rasterized draw command image be proportional to the widget size. The draw rasterization canvas is still an equilateral rectangle with dimensions of the smaller side of the widget. Makes the widget re-rasterize the image only when the draw command changes, not for each widget paint. Renames the widget from "image widget" to "draw command geometry widget". Makes the background of the image black, similar to the raster widget background. Adds a tooltip saying "Command geometry" for the widget, so that user might understand what the contents should be. This commit is part of work that tries to make the debugger window to be a bit more resizeable, so that it would fit 1900x1200 screen. Review URL: https://codereview.chromium.org/787143004 --- gyp/debugger.gyp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gyp') diff --git a/gyp/debugger.gyp b/gyp/debugger.gyp index 749cd5e5eb..05c0e14057 100644 --- a/gyp/debugger.gyp +++ b/gyp/debugger.gyp @@ -117,6 +117,8 @@ '../debugger/debuggermain.cpp', '../debugger/QT/SkDebuggerGUI.cpp', '../debugger/QT/SkDebuggerGUI.h', + '../debugger/QT/SkDrawCommandGeometryWidget.h', + '../debugger/QT/SkDrawCommandGeometryWidget.cpp', '../debugger/QT/SkCanvasWidget.cpp', '../debugger/QT/SkCanvasWidget.h', '../debugger/QT/SkInspectorWidget.h', @@ -129,8 +131,6 @@ '../debugger/QT/SkGLWidget.cpp', '../debugger/QT/SkRasterWidget.h', '../debugger/QT/SkRasterWidget.cpp', - '../debugger/QT/SkImageWidget.h', - '../debugger/QT/SkImageWidget.cpp', # To update this file edit SkIcons.qrc and rerun rcc to generate cpp '../debugger/QT/qrc_SkIcons.cpp', @@ -138,10 +138,10 @@ # Generated MOC files '<(moc_gen_dir)/moc_SkCanvasWidget.cpp', '<(moc_gen_dir)/moc_SkDebuggerGUI.cpp', + '<(moc_gen_dir)/moc_SkDrawCommandGeometryWidget.cpp', '<(moc_gen_dir)/moc_SkInspectorWidget.cpp', '<(moc_gen_dir)/moc_SkSettingsWidget.cpp', '<(moc_gen_dir)/moc_SkRasterWidget.cpp', - '<(moc_gen_dir)/moc_SkImageWidget.cpp', '<(moc_gen_dir)/moc_SkGLWidget.cpp', ], 'cflags': [ @@ -169,10 +169,10 @@ 'sources': [ '<(moc_src_dir)/SkCanvasWidget.h', '<(moc_src_dir)/SkDebuggerGUI.h', + '<(moc_src_dir)/SkDrawCommandGeometryWidget.h', '<(moc_src_dir)/SkInspectorWidget.h', '<(moc_src_dir)/SkSettingsWidget.h', '<(moc_src_dir)/SkRasterWidget.h', - '<(moc_src_dir)/SkImageWidget.h', '<(moc_src_dir)/SkGLWidget.h', ], 'rules': [ -- cgit v1.2.3