summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/SharedTexture.h
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-06-06 17:12:56 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2011-06-07 10:00:27 -0700
commiteb40b62c73237c78ff48b131dd9eeb5871c0cc38 (patch)
treec6e22e842407f3cd4506135024a9849a3b00f019 /Source/WebCore/platform/graphics/android/SharedTexture.h
parentdfadaafc15c16563aba837f05c778eaa2a433a8b (diff)
downloadexternal_webkit-eb40b62c73237c78ff48b131dd9eeb5871c0cc38.zip
external_webkit-eb40b62c73237c78ff48b131dd9eeb5871c0cc38.tar.gz
external_webkit-eb40b62c73237c78ff48b131dd9eeb5871c0cc38.tar.bz2
refactor the TextureInfo out from SharedTexture, no functional change
Change-Id: I9018a8079da1df2fd55c94aacd4ae96227ad2bd2
Diffstat (limited to 'Source/WebCore/platform/graphics/android/SharedTexture.h')
-rw-r--r--Source/WebCore/platform/graphics/android/SharedTexture.h23
1 files changed, 1 insertions, 22 deletions
diff --git a/Source/WebCore/platform/graphics/android/SharedTexture.h b/Source/WebCore/platform/graphics/android/SharedTexture.h
index 37d6091..376eeb3 100644
--- a/Source/WebCore/platform/graphics/android/SharedTexture.h
+++ b/Source/WebCore/platform/graphics/android/SharedTexture.h
@@ -26,6 +26,7 @@
#ifndef SharedTexture_h
#define SharedTexture_h
+#include "TextureInfo.h"
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <GLES2/gl2.h>
@@ -34,28 +35,6 @@
namespace WebCore {
-static const GLuint GL_NO_TEXTURE = 0;
-
-/**
- * TextureInfo is a class that stores both the texture and metadata about the
- * texture.
- */
-class TextureInfo {
-public:
-
- TextureInfo();
-
- bool equalsAttributes(const TextureInfo* otherTexture);
- void copyAttributes(const TextureInfo* sourceTexture);
-
- bool operator==(const TextureInfo& otherTexture);
-
- GLuint m_textureId;
- int32_t m_width;
- int32_t m_height;
- GLenum m_internalFormat;
-};
-
/**
* SharedTexture is a class that encapsulates all the necessary variables
* needed to share a single texture across threads. In the case that threads