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

Unified Diff: debugger/QT/SkImageWidget.h

Issue 787143004: debugger: Make draw command image widget resize (Closed) Base URL: https://skia.googlesource.com/skia.git@debugger-resize-01-settings-layout
Patch Set: address review comments Created 5 years, 12 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 | « debugger/QT/SkDrawCommandGeometryWidget.cpp ('k') | debugger/QT/SkImageWidget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/QT/SkImageWidget.h
diff --git a/debugger/QT/SkImageWidget.h b/debugger/QT/SkImageWidget.h
deleted file mode 100644
index 7ee430f66425f22def89fda67e6c3da419597471..0000000000000000000000000000000000000000
--- a/debugger/QT/SkImageWidget.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2012 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-
-#ifndef SKIMAGEWIDGET_H_
-#define SKIMAGEWIDGET_H_
-
-#include <QWidget>
-
-#include "SkSurface.h"
-class SkDebugger;
-
-class SkImageWidget : public QWidget {
- Q_OBJECT
-
-public:
- SkImageWidget(SkDebugger* debugger);
-
- virtual ~SkImageWidget() {
- fSurface->unref();
- }
-
- void draw() {
- this->update();
- }
-
- static const int kImageWidgetWidth = 256;
- static const int kImageWidgetHeight = 256;
-
-signals:
- void drawComplete();
-
-protected:
- void paintEvent(QPaintEvent* event);
-
-private:
- SkDebugger* fDebugger;
- char fPixels[kImageWidgetHeight * 4 * kImageWidgetWidth];
- SkSurface* fSurface;
-};
-
-#endif /* SKIMAGEWIDGET_H_ */
« no previous file with comments | « debugger/QT/SkDrawCommandGeometryWidget.cpp ('k') | debugger/QT/SkImageWidget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698