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
This commit is contained in:
robertphillips 2016-03-01 09:34:38 -08:00 committed by Commit bot
parent 897586c868
commit 9ea8acdf3f
11 changed files with 23 additions and 22 deletions

View File

@ -55,7 +55,7 @@ void SkCanvasWidget::drawTo(int index) {
#if SK_SUPPORT_GPU
fGLWidget.updateImage();
#endif
emit commandChanged(fDebugger->index());
Q_EMIT commandChanged(fDebugger->index());
}
void SkCanvasWidget::mouseMoveEvent(QMouseEvent* event) {
@ -69,7 +69,7 @@ void SkCanvasWidget::mouseMoveEvent(QMouseEvent* event) {
void SkCanvasWidget::mousePressEvent(QMouseEvent* event) {
fPreviousPoint.set(event->globalX(), event->globalY());
emit hitChanged(fDebugger->getCommandAtPoint(event->x(), event->y(),
Q_EMIT hitChanged(fDebugger->getCommandAtPoint(event->x(), event->y(),
fDebugger->index()));
}
@ -117,7 +117,7 @@ void SkCanvasWidget::snapWidgetTransform() {
void SkCanvasWidget::resetWidgetTransform() {
fUserMatrix.reset();
fDebugger->setUserMatrix(fUserMatrix);
emit scaleFactorChanged(fUserMatrix.getScaleX());
Q_EMIT scaleFactorChanged(fUserMatrix.getScaleX());
drawTo(fDebugger->index());
}
@ -141,7 +141,7 @@ void SkCanvasWidget::setGLSampleCount(int sampleCount)
void SkCanvasWidget::zoom(float scale, int px, int py) {
fUserMatrix.postScale(scale, scale, px, py);
emit scaleFactorChanged(fUserMatrix.getScaleX());
Q_EMIT scaleFactorChanged(fUserMatrix.getScaleX());
fDebugger->setUserMatrix(fUserMatrix);
drawTo(fDebugger->index());
}

View File

@ -49,14 +49,14 @@ public:
kIn_ZoomCommand,
kOut_ZoomCommand,
};
public slots:
public Q_SLOTS:
/**
* Zooms in or out (see ZoomCommandTypes) by the standard zoom factor
* with the transformation centered in the middle of the widget.
*/
void zoom(int zoomCommand);
signals:
Q_SIGNALS:
void scaleFactorChanged(float newScaleFactor);
void commandChanged(int newCommand);
void hitChanged(int hit);

View File

@ -662,7 +662,7 @@ void SkDebuggerGUI::populateDirectoryWidget() {
}
// add any new files
foreach (QString f, files) {
Q_FOREACH (QString f, files) {
if (f.contains(r) && fDirectoryWidget.findItems(f, Qt::MatchExactly).size() == 0) {
fDirectoryWidget.addItem(f);
}

View File

@ -64,10 +64,10 @@ public:
*/
void openFile(const QString& filename);
signals:
Q_SIGNALS:
void commandChanged(int command);
private slots:
private Q_SLOTS:
/**
Toggles breakpoint view in the list widget.
*/

View File

@ -79,7 +79,7 @@ void SkGLWidget::paintGL() {
fDebugger->draw(fCanvas.get());
// TODO(chudy): Implement an optional flush button in Gui.
fCanvas->flush();
emit drawComplete();
Q_EMIT drawComplete();
}
}

View File

@ -35,7 +35,7 @@ public:
}
void setSampleCount(int sampleCount);
signals:
Q_SIGNALS:
void drawComplete();
protected:

View File

@ -45,7 +45,7 @@ void SkRasterWidget::paintEvent(QPaintEvent* event) {
fDebugger->draw(fSurface->getCanvas());
fSurface->getCanvas()->flush();
fNeedImageUpdate = false;
emit drawComplete();
Q_EMIT drawComplete();
}
SkImageInfo info;

View File

@ -1,10 +1,10 @@
/*
* SkRasterWidget.h
*
* Created on: Jul 28, 2012
* Author: chudy
*/
/*
* 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_
@ -22,7 +22,7 @@ public:
void updateImage();
signals:
Q_SIGNALS:
void drawComplete();
protected:

View File

@ -81,9 +81,9 @@ public:
return fPathOpsCheckBox.isChecked();
}
private slots:
private Q_SLOTS:
signals:
Q_SIGNALS:
void visualizationsChanged();
void texFilterSettingsChanged();
#if SK_SUPPORT_GPU

View File

@ -15,6 +15,7 @@
'SK_INTERNAL',
'SK_GAMMA_SRGB',
'SK_GAMMA_APPLY_TO_A8',
'QT_NO_KEYWORDS',
# 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE', # TODO(reed): Re-enable when tests don't crash with this.
],

View File

@ -53,7 +53,7 @@
[ 'skia_os == "win"', {
'variables': {
# This is the default location for the version of Qt current on 10/11/12
'qt_sdk%': 'C:/Qt/4.8.3/',
'qt_sdk%': 'C:/Qt/4.8.6/',
},
'qt_sdk': '<(qt_sdk)',
'qt_moc%': '<(qt_sdk)/bin/moc',