| 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_ |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 protected: | 40 protected: |
| 41 void initializeGL(); | 41 void initializeGL(); |
| 42 void resizeGL(int w, int h); | 42 void resizeGL(int w, int h); |
| 43 void paintGL(); | 43 void paintGL(); |
| 44 | 44 |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 void createRenderTarget(); | 47 void createRenderTarget(); |
| 48 SkAutoTUnref<const GrGLInterface> fCurIntf; | 48 SkAutoTUnref<const GrGLInterface> fCurIntf; |
| 49 SkAutoTUnref<GrContext> fCurContext; | 49 SkAutoTUnref<GrContext> fCurContext; |
| 50 SkAutoTUnref<SkGpuDevice> fGpuDevice; | 50 |
| 51 SkAutoTUnref<SkCanvas> fCanvas; | 51 sk_sp<SkSurface> fGpuSurface; |
| 52 SkCanvas* fCanvas; |
| 53 |
| 52 SkDebugger* fDebugger; | 54 SkDebugger* fDebugger; |
| 53 GrBackendRenderTargetDesc getDesc(int w, int h); | 55 GrBackendRenderTargetDesc getDesc(int w, int h); |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 #endif /* SK_SUPPORT_GPU */ | 58 #endif /* SK_SUPPORT_GPU */ |
| 57 | 59 |
| 58 #endif /* SKGLWIDGET_H_ */ | 60 #endif /* SKGLWIDGET_H_ */ |
| OLD | NEW |