skia2/debugger/QT/SkRasterWidget.h
robertphillips 9ea8acdf3f Unbust the old debugger
AFAICT the recent STL changes have introduced some QT conflicts.

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1753813002

Review URL: https://codereview.chromium.org/1753813002
2016-03-01 09:34:38 -08:00

40 lines
662 B
C++

/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SKRASTERWIDGET_H_
#define SKRASTERWIDGET_H_
#include "SkSurface.h"
class SkDebugger;
#include <QWidget>
class SkRasterWidget : public QWidget {
Q_OBJECT
public:
SkRasterWidget(SkDebugger* debugger);
void updateImage();
Q_SIGNALS:
void drawComplete();
protected:
void paintEvent(QPaintEvent* event);
void resizeEvent(QResizeEvent* event);
private:
SkDebugger* fDebugger;
SkAutoTUnref<SkSurface> fSurface;
bool fNeedImageUpdate;
};
#endif /* SKRASTERWIDGET_H_ */