blob: 7cc728d62ed9da4c3464fcfc483decccd10cf80f [file] [log] [blame]
bsalomon@google.com373a6632011-10-19 20:43:20 +00001
2/*
robertphillips@google.com6177e692013-02-28 20:16:25 +00003 * Copyright 2013 Google Inc.
bsalomon@google.com373a6632011-10-19 20:43:20 +00004 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
kkinnunen9e61bb72014-10-09 05:24:15 -07008#include "gl/SkGLContext.h"
bsalomon@google.com1744f972013-02-26 21:46:32 +00009#include "GrGLUtil.h"
bsalomon@google.com373a6632011-10-19 20:43:20 +000010
kkinnunen30bc88c2014-10-15 23:03:54 -070011SkGLContext::SkGLContext() {
bsalomon@google.com373a6632011-10-19 20:43:20 +000012}
13
kkinnunen9e61bb72014-10-09 05:24:15 -070014SkGLContext::~SkGLContext() {
kkinnunen30bc88c2014-10-15 23:03:54 -070015 SkASSERT(NULL == fGL.get()); // Subclass should destroy the interface.
bsalomon@google.com373a6632011-10-19 20:43:20 +000016}
bsalomon944bcf02014-07-29 08:01:52 -070017
kkinnunen9e61bb72014-10-09 05:24:15 -070018void SkGLContext::testAbandon() {
bsalomon49f085d2014-09-05 13:34:00 -070019 if (fGL) {
bsalomon944bcf02014-07-29 08:01:52 -070020 fGL->abandon();
21 }
22}