diff options
Diffstat (limited to 'src/gpu/gl/SkNullGLContext.cpp')
-rw-r--r-- | src/gpu/gl/SkNullGLContext.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/gpu/gl/SkNullGLContext.cpp b/src/gpu/gl/SkNullGLContext.cpp deleted file mode 100644 index a2c5066273..0000000000 --- a/src/gpu/gl/SkNullGLContext.cpp +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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" -#include "gl/GrGLInterface.h" - -SkNullGLContext* SkNullGLContext::Create() { - SkNullGLContext* ctx = new SkNullGLContext; - if (!ctx->isValid()) { - delete ctx; - return nullptr; - } - return ctx; -} - -SkNullGLContext::SkNullGLContext() { - this->init(GrGLCreateNullInterface()); -} - -SkNullGLContext::~SkNullGLContext() { - this->teardown(); -} |