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

Side by Side Diff: debugger/QT/SkCanvasWidget.cpp

Issue 1262723005: Fix no-gpu debugger. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkCanvasWidget.h" 10 #include "SkCanvasWidget.h"
(...skipping 24 matching lines...) Expand all
35 fHorizontalLayout.addWidget(&fGLWidget); 35 fHorizontalLayout.addWidget(&fGLWidget);
36 #endif 36 #endif
37 37
38 fPreviousPoint.set(0,0); 38 fPreviousPoint.set(0,0);
39 fUserMatrix.reset(); 39 fUserMatrix.reset();
40 40
41 #if SK_SUPPORT_GPU 41 #if SK_SUPPORT_GPU
42 setWidgetVisibility(kGPU_WidgetType, true); 42 setWidgetVisibility(kGPU_WidgetType, true);
43 #endif 43 #endif
44 connect(&fRasterWidget, SIGNAL(drawComplete()), this->parentWidget(), SLOT(d rawComplete())); 44 connect(&fRasterWidget, SIGNAL(drawComplete()), this->parentWidget(), SLOT(d rawComplete()));
45 #if SK_SUPPORT_GPU
45 connect(&fGLWidget, SIGNAL(drawComplete()), this->parentWidget(), SLOT(drawC omplete())); 46 connect(&fGLWidget, SIGNAL(drawComplete()), this->parentWidget(), SLOT(drawC omplete()));
47 #endif
46 } 48 }
47 49
48 SkCanvasWidget::~SkCanvasWidget() {} 50 SkCanvasWidget::~SkCanvasWidget() {}
49 51
50 void SkCanvasWidget::drawTo(int index) { 52 void SkCanvasWidget::drawTo(int index) {
51 fDebugger->setIndex(index); 53 fDebugger->setIndex(index);
52 fRasterWidget.updateImage(); 54 fRasterWidget.updateImage();
53 #if SK_SUPPORT_GPU 55 #if SK_SUPPORT_GPU
54 fGLWidget.updateImage(); 56 fGLWidget.updateImage();
55 #endif 57 #endif
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 fGLWidget.setSampleCount(sampleCount); 138 fGLWidget.setSampleCount(sampleCount);
137 } 139 }
138 #endif 140 #endif
139 141
140 void SkCanvasWidget::zoom(float scale, int px, int py) { 142 void SkCanvasWidget::zoom(float scale, int px, int py) {
141 fUserMatrix.postScale(scale, scale, px, py); 143 fUserMatrix.postScale(scale, scale, px, py);
142 emit scaleFactorChanged(fUserMatrix.getScaleX()); 144 emit scaleFactorChanged(fUserMatrix.getScaleX());
143 fDebugger->setUserMatrix(fUserMatrix); 145 fDebugger->setUserMatrix(fUserMatrix);
144 drawTo(fDebugger->index()); 146 drawTo(fDebugger->index());
145 } 147 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698