2011-10-19 20:43:20 +00:00
|
|
|
|
|
|
|
/*
|
2013-02-28 20:16:25 +00:00
|
|
|
* Copyright 2013 Google Inc.
|
2011-10-19 20:43:20 +00:00
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
2014-10-09 12:24:15 +00:00
|
|
|
#include "gl/SkGLContext.h"
|
2013-02-26 21:46:32 +00:00
|
|
|
#include "GrGLUtil.h"
|
2011-10-19 20:43:20 +00:00
|
|
|
|
2014-10-16 06:03:54 +00:00
|
|
|
SkGLContext::SkGLContext() {
|
2011-10-19 20:43:20 +00:00
|
|
|
}
|
|
|
|
|
2014-10-09 12:24:15 +00:00
|
|
|
SkGLContext::~SkGLContext() {
|
2014-10-16 06:03:54 +00:00
|
|
|
SkASSERT(NULL == fGL.get()); // Subclass should destroy the interface.
|
2011-10-19 20:43:20 +00:00
|
|
|
}
|
2014-07-29 15:01:52 +00:00
|
|
|
|
2014-10-09 12:24:15 +00:00
|
|
|
void SkGLContext::testAbandon() {
|
2014-09-05 20:34:00 +00:00
|
|
|
if (fGL) {
|
2014-07-29 15:01:52 +00:00
|
|
|
fGL->abandon();
|
|
|
|
}
|
|
|
|
}
|