summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/TextureOwner.h
diff options
context:
space:
mode:
authorNicolas Roard <nicolas@android.com>2010-12-13 13:04:28 -0800
committerNicolas Roard <nicolas@android.com>2010-12-13 13:04:28 -0800
commit9cb2c64b0e05541c6e78a17de554436f933351fb (patch)
tree53d2e2afcc3ffcabfc471b54148b399d301d1564 /WebCore/platform/graphics/android/TextureOwner.h
parentc9ab9bf00ba3ce8289f917675f81b40e4438a864 (diff)
downloadexternal_webkit-9cb2c64b0e05541c6e78a17de554436f933351fb.zip
external_webkit-9cb2c64b0e05541c6e78a17de554436f933351fb.tar.gz
external_webkit-9cb2c64b0e05541c6e78a17de554436f933351fb.tar.bz2
Refactor to use a TextureOwner interface
Change-Id: I40357e76ba1b9e7b164688b3089db73cf81aa02e
Diffstat (limited to 'WebCore/platform/graphics/android/TextureOwner.h')
-rw-r--r--WebCore/platform/graphics/android/TextureOwner.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/TextureOwner.h b/WebCore/platform/graphics/android/TextureOwner.h
new file mode 100644
index 0000000..959b2bd
--- /dev/null
+++ b/WebCore/platform/graphics/android/TextureOwner.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2010, The Android Open Source Project
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef TextureOwner_h
+#define TextureOwner_h
+
+namespace WebCore {
+
+class TiledPage;
+
+class TextureOwner {
+public:
+ virtual ~TextureOwner() {}
+ virtual void removeTexture() = 0;
+ virtual TiledPage* page() = 0;
+};
+
+}
+
+#endif // TextureOwner_h