From 8e93a7c9377b4ae43ecfb408f4906a09f6c83c03 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Mon, 23 Feb 2015 13:07:57 -0800 Subject: Simplify Texture member initialization Change-Id: Iaaa6dd20e64a0a075d732b101e3c4278cad44047 --- libs/hwui/Texture.cpp | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'libs/hwui/Texture.cpp') diff --git a/libs/hwui/Texture.cpp b/libs/hwui/Texture.cpp index 512f5cf0d9a3..593e91818093 100644 --- a/libs/hwui/Texture.cpp +++ b/libs/hwui/Texture.cpp @@ -24,46 +24,6 @@ namespace android { namespace uirenderer { -Texture::Texture() - : id(0) - , generation(0) - , blend(false) - , width(0) - , height(0) - , cleanup(false) - , bitmapSize(0) - , mipMap(false) - , uvMapper(nullptr) - , isInUse(false) - , mWrapS(GL_CLAMP_TO_EDGE) - , mWrapT(GL_CLAMP_TO_EDGE) - , mMinFilter(GL_NEAREST) - , mMagFilter(GL_NEAREST) - , mFirstFilter(true) - , mFirstWrap(true) - , mCaches(Caches::getInstance()) { -} - -Texture::Texture(Caches& caches) - : id(0) - , generation(0) - , blend(false) - , width(0) - , height(0) - , cleanup(false) - , bitmapSize(0) - , mipMap(false) - , uvMapper(nullptr) - , isInUse(false) - , mWrapS(GL_CLAMP_TO_EDGE) - , mWrapT(GL_CLAMP_TO_EDGE) - , mMinFilter(GL_NEAREST) - , mMagFilter(GL_NEAREST) - , mFirstFilter(true) - , mFirstWrap(true) - , mCaches(caches) { -} - void Texture::setWrapST(GLenum wrapS, GLenum wrapT, bool bindTexture, bool force, GLenum renderTarget) { -- cgit v1.2.3-59-g8ed1b