aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/SkGLContext.cpp
blob: 7cc728d62ed9da4c3464fcfc483decccd10cf80f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

/*
 * Copyright 2013 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#include "gl/SkGLContext.h"
#include "GrGLUtil.h"

SkGLContext::SkGLContext() {
}

SkGLContext::~SkGLContext() {
    SkASSERT(NULL == fGL.get());  // Subclass should destroy the interface.
}

void SkGLContext::testAbandon() {
    if (fGL) {
        fGL->abandon();
    }
}