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