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 
TextureImpl(const gl::TextureState & state)14 TextureImpl::TextureImpl(const gl::TextureState &state) : mState(state)
15 {
16 }
17 
~TextureImpl()18 TextureImpl::~TextureImpl()
19 {
20 }
21 
onDestroy(const gl::Context * context)22 gl::Error TextureImpl::onDestroy(const gl::Context *context)
23 {
24     return gl::NoError();
25 }
26 
copyTexture(const gl::Context * context,GLenum target,size_t level,GLenum internalFormat,GLenum type,size_t sourceLevel,bool unpackFlipY,bool unpackPremultiplyAlpha,bool unpackUnmultiplyAlpha,const gl::Texture * source)27 gl::Error TextureImpl::copyTexture(const gl::Context *context,
28                                    GLenum target,
29                                    size_t level,
30                                    GLenum internalFormat,
31                                    GLenum type,
32                                    size_t sourceLevel,
33                                    bool unpackFlipY,
34                                    bool unpackPremultiplyAlpha,
35                                    bool unpackUnmultiplyAlpha,
36                                    const gl::Texture *source)
37 {
38     UNREACHABLE();
39     return gl::InternalError() << "CHROMIUM_copy_texture exposed but not implemented.";
40 }
41 
copySubTexture(const gl::Context * context,GLenum target,size_t level,const gl::Offset & destOffset,size_t sourceLevel,const gl::Rectangle & sourceArea,bool unpackFlipY,bool unpackPremultiplyAlpha,bool unpackUnmultiplyAlpha,const gl::Texture * source)42 gl::Error TextureImpl::copySubTexture(const gl::Context *context,
43                                       GLenum target,
44                                       size_t level,
45                                       const gl::Offset &destOffset,
46                                       size_t sourceLevel,
47                                       const gl::Rectangle &sourceArea,
48                                       bool unpackFlipY,
49                                       bool unpackPremultiplyAlpha,
50                                       bool unpackUnmultiplyAlpha,
51                                       const gl::Texture *source)
52 {
53     UNREACHABLE();
54     return gl::InternalError() << "CHROMIUM_copy_texture exposed but not implemented.";
55 }
56 
copyCompressedTexture(const gl::Context * context,const gl::Texture * source)57 gl::Error TextureImpl::copyCompressedTexture(const gl::Context *context, const gl::Texture *source)
58 {
59     UNREACHABLE();
60     return gl::InternalError() << "CHROMIUM_copy_compressed_texture exposed but not implemented.";
61 }
62 
63 }  // namespace rx
64