1 /* 2 * Copyright 2016 Google Inc. 3 * 4 * 5 * Use of this source code is governed by a BSD-style license that can be 6 * found in the LICENSE file. 7 * 8 */ 9 10 #pragma once 11 12 // 13 // 14 // 15 16 #include "gl/GrGLInterface.h" 17 18 // 19 // 20 // 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 #include "skc.h" 27 28 #ifdef __cplusplus 29 } 30 #endif 31 32 // 33 // 34 // 35 36 class SkContext_Compute : public SkNVRefCnt<SkContext_Compute> 37 { 38 public: 39 40 // 41 // 42 // 43 44 SkContext_Compute(GrGLInterface const * fInterface); 45 46 ~SkContext_Compute(); 47 48 // 49 // 50 // 51 52 skc_context_t context; 53 skc_interop_t interop; 54 skc_surface_t surface; 55 56 // 57 // 58 // 59 60 private: 61 62 GrGLInterface const * fInterface; 63 64 // 65 // 66 // 67 }; 68 69 // 70 // 71 // 72