OLD | NEW |
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 SKGLWIDGET_H_ | 10 #ifndef SKGLWIDGET_H_ |
11 #define SKGLWIDGET_H_ | 11 #define SKGLWIDGET_H_ |
12 | 12 |
13 #if SK_SUPPORT_GPU | 13 #if SK_SUPPORT_GPU |
14 | 14 |
15 #include <QtOpenGL/QGLWidget> | 15 #include <QtOpenGL/QGLWidget> |
16 #include "SkDebugCanvas.h" | 16 #include "SkDebugCanvas.h" |
17 #include "SkDebugger.h" | 17 #include "SkDebugger.h" |
18 #include "SkDevice.h" | |
19 #include "SkGpuDevice.h" | 18 #include "SkGpuDevice.h" |
20 #include "GrContext.h" | 19 #include "GrContext.h" |
21 #include "gl/GrGLInterface.h" | 20 #include "gl/GrGLInterface.h" |
22 #include "gl/GrGLUtil.h" | 21 #include "gl/GrGLUtil.h" |
23 #include "GrRenderTarget.h" | 22 #include "GrRenderTarget.h" |
24 | 23 |
25 class SkGLWidget : public QGLWidget { | 24 class SkGLWidget : public QGLWidget { |
26 Q_OBJECT | 25 Q_OBJECT |
27 | 26 |
28 public: | 27 public: |
(...skipping 21 matching lines...) Expand all Loading... |
50 SkAutoTUnref<GrContext> fCurContext; | 49 SkAutoTUnref<GrContext> fCurContext; |
51 SkAutoTUnref<SkGpuDevice> fGpuDevice; | 50 SkAutoTUnref<SkGpuDevice> fGpuDevice; |
52 SkAutoTUnref<SkCanvas> fCanvas; | 51 SkAutoTUnref<SkCanvas> fCanvas; |
53 SkDebugger* fDebugger; | 52 SkDebugger* fDebugger; |
54 GrBackendRenderTargetDesc getDesc(int w, int h); | 53 GrBackendRenderTargetDesc getDesc(int w, int h); |
55 }; | 54 }; |
56 | 55 |
57 #endif /* SK_SUPPORT_GPU */ | 56 #endif /* SK_SUPPORT_GPU */ |
58 | 57 |
59 #endif /* SKGLWIDGET_H_ */ | 58 #endif /* SKGLWIDGET_H_ */ |
OLD | NEW |