blob: af47963716f86f275238a7ef592d905a1408305c [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
22gl::Error TextureImpl::copyTexture(GLenum internalFormat,
23 GLenum type,
24 bool unpackFlipY,
25 bool unpackPremultiplyAlpha,
26 bool unpackUnmultiplyAlpha,
27 const gl::Texture *source)
28{
29 UNREACHABLE();
30 return gl::Error(GL_INVALID_OPERATION, "CHROMIUM_copy_texture exposed but not implemented.");
31}
32
33gl::Error TextureImpl::copySubTexture(const gl::Offset &destOffset,
34 const gl::Rectangle &sourceArea,
35 bool unpackFlipY,
36 bool unpackPremultiplyAlpha,
37 bool unpackUnmultiplyAlpha,
38 const gl::Texture *source)
39{
40 UNREACHABLE();
41 return gl::Error(GL_INVALID_OPERATION, "CHROMIUM_copy_texture exposed but not implemented.");
42}
Geoff Lang47110bf2016-04-20 11:13:22 -070043
44gl::Error TextureImpl::copyCompressedTexture(const gl::Texture *source)
45{
46 UNREACHABLE();
47 return gl::Error(GL_INVALID_OPERATION,
48 "CHROMIUM_copy_compressed_texture exposed but not implemented.");
49}
Geoff Lang97073d12016-04-20 10:42:34 -070050}