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

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

Issue 21752002: Support MSAA in the picture debugger (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | debugger/QT/SkCanvasWidget.cpp » ('j') | 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 #ifndef SKCANVASWIDGET_H_ 10 #ifndef SKCANVASWIDGET_H_
(...skipping 18 matching lines...) Expand all
29 kRaster_8888_WidgetType = 1 << 0, 29 kRaster_8888_WidgetType = 1 << 0,
30 #if SK_SUPPORT_GPU 30 #if SK_SUPPORT_GPU
31 kGPU_WidgetType = 1 << 1, 31 kGPU_WidgetType = 1 << 1,
32 #endif 32 #endif
33 }; 33 };
34 34
35 void drawTo(int index); 35 void drawTo(int index);
36 36
37 void setWidgetVisibility(WidgetType type, bool isHidden); 37 void setWidgetVisibility(WidgetType type, bool isHidden);
38 38
39 #if SK_SUPPORT_GPU
40 void setGLSampleCount(int sampleCount);
41 #endif
42
39 /** Zooms the canvas by scale with the transformation centered at the widget point (px, py). */ 43 /** Zooms the canvas by scale with the transformation centered at the widget point (px, py). */
40 void zoom(float scale, int px, int py); 44 void zoom(float scale, int px, int py);
41 45
42 void resetWidgetTransform(); 46 void resetWidgetTransform();
43 47
44 enum ZoomCommandTypes { 48 enum ZoomCommandTypes {
45 kIn_ZoomCommand, 49 kIn_ZoomCommand,
46 kOut_ZoomCommand, 50 kOut_ZoomCommand,
47 }; 51 };
48 public slots: 52 public slots:
(...skipping 24 matching lines...) Expand all
73 77
74 void mouseDoubleClickEvent(QMouseEvent* event); 78 void mouseDoubleClickEvent(QMouseEvent* event);
75 79
76 void wheelEvent(QWheelEvent* event); 80 void wheelEvent(QWheelEvent* event);
77 81
78 void snapWidgetTransform(); 82 void snapWidgetTransform();
79 }; 83 };
80 84
81 85
82 #endif /* SKCANVASWIDGET_H_ */ 86 #endif /* SKCANVASWIDGET_H_ */
OLDNEW
« no previous file with comments | « no previous file | debugger/QT/SkCanvasWidget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698