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 | |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame^] | 22 | gl::Error TextureImpl::copyTexture(ContextImpl *contextImpl, |
| 23 | GLenum internalFormat, |
Geoff Lang | 97073d1 | 2016-04-20 10:42:34 -0700 | [diff] [blame] | 24 | GLenum type, |
| 25 | bool unpackFlipY, |
| 26 | bool unpackPremultiplyAlpha, |
| 27 | bool unpackUnmultiplyAlpha, |
| 28 | const gl::Texture *source) |
| 29 | { |
| 30 | UNREACHABLE(); |
| 31 | return gl::Error(GL_INVALID_OPERATION, "CHROMIUM_copy_texture exposed but not implemented."); |
| 32 | } |
| 33 | |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame^] | 34 | gl::Error TextureImpl::copySubTexture(ContextImpl *contextImpl, |
| 35 | const gl::Offset &destOffset, |
Geoff Lang | 97073d1 | 2016-04-20 10:42:34 -0700 | [diff] [blame] | 36 | const gl::Rectangle &sourceArea, |
| 37 | bool unpackFlipY, |
| 38 | bool unpackPremultiplyAlpha, |
| 39 | bool unpackUnmultiplyAlpha, |
| 40 | const gl::Texture *source) |
| 41 | { |
| 42 | UNREACHABLE(); |
| 43 | return gl::Error(GL_INVALID_OPERATION, "CHROMIUM_copy_texture exposed but not implemented."); |
| 44 | } |
Geoff Lang | 47110bf | 2016-04-20 11:13:22 -0700 | [diff] [blame] | 45 | |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame^] | 46 | gl::Error TextureImpl::copyCompressedTexture(ContextImpl *contextImpl, const gl::Texture *source) |
Geoff Lang | 47110bf | 2016-04-20 11:13:22 -0700 | [diff] [blame] | 47 | { |
| 48 | UNREACHABLE(); |
| 49 | return gl::Error(GL_INVALID_OPERATION, |
| 50 | "CHROMIUM_copy_compressed_texture exposed but not implemented."); |
| 51 | } |
Jamie Madill | 8897afa | 2017-02-06 17:17:23 -0500 | [diff] [blame^] | 52 | } // namespace rx |