blob: c5e68cfcf6c2bbbdc839896d9f531256b30f34f4 [file] [log] [blame]
Geoff Lang97073d12016-04-20 10:42:34 -07001//
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
11namespace rx
12{
13
14TextureImpl::TextureImpl(const gl::TextureState &state) : mState(state)
15{
16}
17
18TextureImpl::~TextureImpl()
19{
20}
21
Jamie Madill8897afa2017-02-06 17:17:23 -050022gl::Error TextureImpl::copyTexture(ContextImpl *contextImpl,
23 GLenum internalFormat,
Geoff Lang97073d12016-04-20 10:42:34 -070024 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 Madill8897afa2017-02-06 17:17:23 -050034gl::Error TextureImpl::copySubTexture(ContextImpl *contextImpl,
35 const gl::Offset &destOffset,
Geoff Lang97073d12016-04-20 10:42:34 -070036 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 Lang47110bf2016-04-20 11:13:22 -070045
Jamie Madill8897afa2017-02-06 17:17:23 -050046gl::Error TextureImpl::copyCompressedTexture(ContextImpl *contextImpl, const gl::Texture *source)
Geoff Lang47110bf2016-04-20 11:13:22 -070047{
48 UNREACHABLE();
49 return gl::Error(GL_INVALID_OPERATION,
50 "CHROMIUM_copy_compressed_texture exposed but not implemented.");
51}
Jamie Madill8897afa2017-02-06 17:17:23 -050052} // namespace rx