Geoff Lang | 97073d1 | 2016-04-20 10:42:34 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright 2016 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 | // TextureImpl.cpp: Defines the abstract rx::TextureImpl classes. |
| 8 | |
| 9 | #include "libANGLE/renderer/TextureImpl.h" |
| 10 | |
| 11 | namespace rx |
| 12 | { |
| 13 | |
| 14 | TextureImpl::TextureImpl(const gl::TextureState &state) : mState(state) |
| 15 | { |
| 16 | } |
| 17 | |
| 18 | TextureImpl::~TextureImpl() |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | gl::Error TextureImpl::copyTexture(GLenum internalFormat, |
| 23 | GLenum type, |
| 24 | bool unpackFlipY, |
| 25 | bool unpackPremultiplyAlpha, |
| 26 | bool unpackUnmultiplyAlpha, |
| 27 | const gl::Texture *source) |
| 28 | { |
| 29 | UNREACHABLE(); |
| 30 | return gl::Error(GL_INVALID_OPERATION, "CHROMIUM_copy_texture exposed but not implemented."); |
| 31 | } |
| 32 | |
| 33 | gl::Error TextureImpl::copySubTexture(const gl::Offset &destOffset, |
| 34 | const gl::Rectangle &sourceArea, |
| 35 | bool unpackFlipY, |
| 36 | bool unpackPremultiplyAlpha, |
| 37 | bool unpackUnmultiplyAlpha, |
| 38 | const gl::Texture *source) |
| 39 | { |
| 40 | UNREACHABLE(); |
| 41 | return gl::Error(GL_INVALID_OPERATION, "CHROMIUM_copy_texture exposed but not implemented."); |
| 42 | } |
Geoff Lang | 47110bf | 2016-04-20 11:13:22 -0700 | [diff] [blame^] | 43 | |
| 44 | gl::Error TextureImpl::copyCompressedTexture(const gl::Texture *source) |
| 45 | { |
| 46 | UNREACHABLE(); |
| 47 | return gl::Error(GL_INVALID_OPERATION, |
| 48 | "CHROMIUM_copy_compressed_texture exposed but not implemented."); |
| 49 | } |
Geoff Lang | 97073d1 | 2016-04-20 10:42:34 -0700 | [diff] [blame] | 50 | } |