summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/TextureInfo.cpp
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-06-16 14:27:09 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2011-06-16 17:48:37 -0700
commit1ff2b9b9ba1fd8da776f2b114f371d2299aae835 (patch)
tree7fe62b9b993ec111ea016180799f179521b0afad /Source/WebCore/platform/graphics/android/TextureInfo.cpp
parentec127d933c57ca94eb3715bd78546165496c991e (diff)
downloadexternal_webkit-1ff2b9b9ba1fd8da776f2b114f371d2299aae835.zip
external_webkit-1ff2b9b9ba1fd8da776f2b114f371d2299aae835.tar.gz
external_webkit-1ff2b9b9ba1fd8da776f2b114f371d2299aae835.tar.bz2
Interface clean up for porting Surface Texture, no functional change.
Change-Id: I0d43dd94a1bb4666d20a39b2b272337e89a21d8b
Diffstat (limited to 'Source/WebCore/platform/graphics/android/TextureInfo.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/TextureInfo.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/TextureInfo.cpp b/Source/WebCore/platform/graphics/android/TextureInfo.cpp
index 2db1667..ce132c8 100644
--- a/Source/WebCore/platform/graphics/android/TextureInfo.cpp
+++ b/Source/WebCore/platform/graphics/android/TextureInfo.cpp
@@ -23,16 +23,24 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "config.h"
#include "TextureInfo.h"
+#include "WebCoreJni.h"
+
+#include <JNIUtility.h>
+#include <android/native_window.h>
+#include <gui/SurfaceTexture.h>
+#include <gui/SurfaceTextureClient.h>
namespace WebCore {
-TextureInfo::TextureInfo()
+TextureInfo::TextureInfo(SharedTextureMode mode)
{
m_textureId = GL_NO_TEXTURE;
m_width = 0;
m_height = 0;
m_internalFormat = 0;
+ m_sharedTextureMode = mode;
}
bool TextureInfo::equalsAttributes(const TextureInfo* otherTexture)