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