• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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()11 SkGLContext::SkGLContext() {
12 }
13 
~SkGLContext()14 SkGLContext::~SkGLContext() {
15     SkASSERT(NULL == fGL.get());  // Subclass should destroy the interface.
16 }
17 
testAbandon()18 void SkGLContext::testAbandon() {
19     if (fGL) {
20         fGL->abandon();
21     }
22 }
23