0cfeaf3ac1
Make all fields of inspector view (details tab, clipstack tab, geometry view) update the correct info when user selects a draw command. Also update the info regardless if the painting is paused or not. Current clip and matrix will not update consistently even after this patch, as they depend on stateful debug canvas draw (may be fixed later). Review URL: https://codereview.chromium.org/835903002
37 lines
724 B
C++
37 lines
724 B
C++
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
|
|
#ifndef SKDRAWCOMMANDGEOMETRYWIDGET_H_
|
|
#define SKDRAWCOMMANDGEOMETRYWIDGET_H_
|
|
|
|
#include <QFrame>
|
|
|
|
#include "SkSurface.h"
|
|
class SkDebugger;
|
|
|
|
class SkDrawCommandGeometryWidget : public QFrame {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SkDrawCommandGeometryWidget(SkDebugger* debugger);
|
|
void setDrawCommandIndex(int index);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent* event);
|
|
void resizeEvent(QResizeEvent* event);
|
|
|
|
private:
|
|
void updateImage();
|
|
|
|
SkDebugger* fDebugger;
|
|
SkAutoTUnref<SkSurface> fSurface;
|
|
int fCommandIndex;
|
|
};
|
|
|
|
#endif /* SKDRAWCOMMANDGEOMETRYWIDGET_H_ */
|