blob: 7d0efea220e27090c09be54c92f10492416c2656 [file] [log] [blame]
Geoff Lang492a7e42014-11-05 13:27:06 -05001//
2// Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6
7// Compiler.cpp: implements the gl::Compiler class.
8
9#include "libANGLE/Compiler.h"
10#include "libANGLE/renderer/CompilerImpl.h"
11
12#include "common/debug.h"
13
14namespace gl
15{
16
17Compiler::Compiler(rx::CompilerImpl *impl)
18 : mCompiler(impl)
19{
20 ASSERT(mCompiler);
21}
22
23Compiler::~Compiler()
24{
25 SafeDelete(mCompiler);
26}
27
28Error Compiler::release()
29{
30 return mCompiler->release();
31}
32
33rx::CompilerImpl *Compiler::getImplementation()
34{
35 return mCompiler;
36}
37
38}