Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / src / gpu / gl / SkGLContext.cpp
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
11 SkGLContext::SkGLContext() {
12 }
13
14 SkGLContext::~SkGLContext() {
15     SkASSERT(NULL == fGL.get());  // Subclass should destroy the interface.
16 }
17
18 void SkGLContext::testAbandon() {
19     if (fGL) {
20         fGL->abandon();
21     }
22 }