aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/SkNullGLContext.cpp
blob: 68807e7c574d5b5a819d204345ae2c7e3639d6e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

/*
 * Copyright 2011 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "gl/SkNullGLContext.h"

SkNullGLContext::SkNullGLContext() {
    fGL.reset(GrGLCreateNullInterface());
}

SkNullGLContext::~SkNullGLContext() {
    fGL.reset(NULL);
}