bsalomon@google.com | 7491372 | 2011-10-27 20:44:19 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2011 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 | |
tomhudson@google.com | 6bf38b5 | 2012-02-14 15:11:59 +0000 | [diff] [blame] | 9 | #include "gl/SkNullGLContext.h" |
bsalomon@google.com | 7491372 | 2011-10-27 20:44:19 +0000 | [diff] [blame] | 10 | |
kkinnunen | 30bc88c | 2014-10-15 23:03:54 -0700 | [diff] [blame^] | 11 | SkNullGLContext::SkNullGLContext() { |
| 12 | fGL.reset(GrGLCreateNullInterface()); |
| 13 | } |
| 14 | |
| 15 | SkNullGLContext::~SkNullGLContext() { |
| 16 | fGL.reset(NULL); |
| 17 | } |
| 18 | |