Geoff Lang | 492a7e4 | 2014-11-05 13:27:06 -0500 | [diff] [blame] | 1 | // |
| 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 | |
| 14 | namespace gl |
| 15 | { |
| 16 | |
| 17 | Compiler::Compiler(rx::CompilerImpl *impl) |
| 18 | : mCompiler(impl) |
| 19 | { |
| 20 | ASSERT(mCompiler); |
| 21 | } |
| 22 | |
| 23 | Compiler::~Compiler() |
| 24 | { |
| 25 | SafeDelete(mCompiler); |
| 26 | } |
| 27 | |
| 28 | Error Compiler::release() |
| 29 | { |
| 30 | return mCompiler->release(); |
| 31 | } |
| 32 | |
| 33 | rx::CompilerImpl *Compiler::getImplementation() |
| 34 | { |
| 35 | return mCompiler; |
| 36 | } |
| 37 | |
| 38 | } |