1 2 /* 3 * Copyright 2013 Google Inc. 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 #include "gl/SkGLContext.h" 9 #include "GrGLUtil.h" 10 SkGLContext()11SkGLContext::SkGLContext() { 12 } 13 ~SkGLContext()14SkGLContext::~SkGLContext() { 15 SkASSERT(NULL == fGL.get()); // Subclass should destroy the interface. 16 } 17 testAbandon()18void SkGLContext::testAbandon() { 19 if (fGL) { 20 fGL->abandon(); 21 } 22 } 23