OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #ifndef WindowContext_DEFINED | 7 #ifndef WindowContext_DEFINED |
8 #define WindowContext_DEFINED | 8 #define WindowContext_DEFINED |
9 | 9 |
10 #include "GrTypes.h" | 10 #include "GrTypes.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 virtual SkSurface* getBackbufferSurface() = 0; | 21 virtual SkSurface* getBackbufferSurface() = 0; |
22 | 22 |
23 virtual void swapBuffers() = 0; | 23 virtual void swapBuffers() = 0; |
24 | 24 |
25 virtual bool makeCurrent() = 0; | 25 virtual bool makeCurrent() = 0; |
26 | 26 |
27 virtual bool isValid() = 0; | 27 virtual bool isValid() = 0; |
28 | 28 |
29 virtual void resize(uint32_t w, uint32_t h) = 0; | 29 virtual void resize(uint32_t w, uint32_t h) = 0; |
30 | 30 |
| 31 virtual bool getSRGB() = 0; |
| 32 virtual void setSRGB(bool srgb) = 0; |
| 33 |
31 virtual GrBackendContext getBackendContext() = 0; | 34 virtual GrBackendContext getBackendContext() = 0; |
32 }; | 35 }; |
33 | 36 |
34 } // namespace sk_app | 37 } // namespace sk_app |
35 | 38 |
36 #endif | 39 #endif |
OLD | NEW |