blob: 830d30e6d197e27d888378fd1a90b73c27a994a5 [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 Madillacf2f3a2017-11-21 19:22:44 -050022gl::Error TextureImpl::onDestroy(const gl::Context *context)
23{
24 return gl::NoError();
25}
26
Jamie Madillc564c072017-06-01 12:45:42 -040027gl::Error TextureImpl::copyTexture(const gl::Context *context,
Geoff Langfc72a072017-03-24 14:52:39 -040028 GLenum target,
29 size_t level,
Jamie Madill8897afa2017-02-06 17:17:23 -050030 GLenum internalFormat,
Geoff Lang97073d12016-04-20 10:42:34 -070031 GLenum type,
Geoff Langfc72a072017-03-24 14:52:39 -040032 size_t sourceLevel,
Geoff Lang97073d12016-04-20 10:42:34 -070033 bool unpackFlipY,
34 bool unpackPremultiplyAlpha,
35 bool unpackUnmultiplyAlpha,
36 const gl::Texture *source)
37{
38 UNREACHABLE();
Yuly Novikovc4d18aa2017-03-09 18:45:02 -050039 return gl::InternalError() << "CHROMIUM_copy_texture exposed but not implemented.";
Geoff Lang97073d12016-04-20 10:42:34 -070040}
41
Jamie Madillc564c072017-06-01 12:45:42 -040042gl::Error TextureImpl::copySubTexture(const gl::Context *context,
Geoff Langfc72a072017-03-24 14:52:39 -040043 GLenum target,
44 size_t level,
Jamie Madill8897afa2017-02-06 17:17:23 -050045 const gl::Offset &destOffset,
Geoff Langfc72a072017-03-24 14:52:39 -040046 size_t sourceLevel,
Geoff Lang97073d12016-04-20 10:42:34 -070047 const gl::Rectangle &sourceArea,
48 bool unpackFlipY,
49 bool unpackPremultiplyAlpha,
50 bool unpackUnmultiplyAlpha,
51 const gl::Texture *source)
52{
53 UNREACHABLE();
Yuly Novikovc4d18aa2017-03-09 18:45:02 -050054 return gl::InternalError() << "CHROMIUM_copy_texture exposed but not implemented.";
Geoff Lang97073d12016-04-20 10:42:34 -070055}
Geoff Lang47110bf2016-04-20 11:13:22 -070056
Jamie Madillc564c072017-06-01 12:45:42 -040057gl::Error TextureImpl::copyCompressedTexture(const gl::Context *context, const gl::Texture *source)
Geoff Lang47110bf2016-04-20 11:13:22 -070058{
59 UNREACHABLE();
Yuly Novikovc4d18aa2017-03-09 18:45:02 -050060 return gl::InternalError() << "CHROMIUM_copy_compressed_texture exposed but not implemented.";
Geoff Lang47110bf2016-04-20 11:13:22 -070061}
JiangYizhou34bc3152017-03-29 14:56:01 +080062
Jamie Madill8897afa2017-02-06 17:17:23 -050063} // namespace rx