OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2016 Google Inc. | 3 * Copyright 2016 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 #ifndef GLWindowContext_DEFINED | 8 #ifndef GLWindowContext_DEFINED |
9 #define GLWindowContext_DEFINED | 9 #define GLWindowContext_DEFINED |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual void onInitializeContext(void*, const DisplayParams&) = 0; | 45 virtual void onInitializeContext(void*, const DisplayParams&) = 0; |
46 void destroyContext(); | 46 void destroyContext(); |
47 virtual void onDestroyContext() = 0; | 47 virtual void onDestroyContext() = 0; |
48 virtual void onSwapBuffers() = 0; | 48 virtual void onSwapBuffers() = 0; |
49 | 49 |
50 SkAutoTUnref<const GrGLInterface> fBackendContext; | 50 SkAutoTUnref<const GrGLInterface> fBackendContext; |
51 sk_sp<GrRenderTarget> fRenderTarget; | 51 sk_sp<GrRenderTarget> fRenderTarget; |
52 sk_sp<SkSurface> fSurface; | 52 sk_sp<SkSurface> fSurface; |
53 | 53 |
54 // parameters obtained from the native window | 54 // parameters obtained from the native window |
| 55 // Note that the platform .cpp file is responsible for |
| 56 // initializing fSampleCount, fStencilBits, and fColorBits! |
55 int fSampleCount; | 57 int fSampleCount; |
56 int fStencilBits; | 58 int fStencilBits; |
57 int fColorBits; | 59 int fColorBits; |
58 int fActualColorBits; | 60 int fActualColorBits; |
59 }; | 61 }; |
60 | 62 |
61 } // namespace sk_app | 63 } // namespace sk_app |
62 | 64 |
63 #endif | 65 #endif |
OLD | NEW |