blob: 465d4e3e745258a0018ada44962dd589023100bb [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}
43}