Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(859)

Unified Diff: Source/core/html/canvas/WebGLShareGroup.cpp

Issue 17230006: Implement WEBGL_shared_resources Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/canvas/WebGLShareGroup.cpp
diff --git a/Source/modules/indexeddb/IndexedDB.h b/Source/core/html/canvas/WebGLShareGroup.cpp
similarity index 73%
copy from Source/modules/indexeddb/IndexedDB.h
copy to Source/core/html/canvas/WebGLShareGroup.cpp
index 05da27e3a22a61c3ed71c87cce6752cc4047621d..b89206379b2763ef6ebacc0db8a2b407b1f2d6d9 100644
--- a/Source/modules/indexeddb/IndexedDB.h
+++ b/Source/core/html/canvas/WebGLShareGroup.cpp
@@ -23,33 +23,31 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef IndexedDB_h
-#define IndexedDB_h
+#include "config.h"
-namespace WebCore {
+#include "core/html/canvas/WebGLShareGroup.h"
+
+#include "core/html/canvas/WebGLContextGroup.h"
-namespace IndexedDB {
+namespace WebCore {
-enum TransactionMode {
- TransactionReadOnly = 0,
- TransactionReadWrite = 1,
- TransactionVersionChange = 2
-};
+WebGLShareGroup::WebGLShareGroup(PassRefPtr<WebGLContextGroup> group)
+ : m_contextGroup(group)
+{
+}
-enum CursorDirection {
- CursorNext = 0,
- CursorNextNoDuplicate = 1,
- CursorPrev = 2,
- CursorPrevNoDuplicate = 3,
-};
+WebGLShareGroup::~WebGLShareGroup()
+{
+}
-enum CursorType {
- CursorKeyAndValue = 0,
- CursorKeyOnly
-};
+PassRefPtr<WebGLShareGroup> WebGLShareGroup::create(PassRefPtr<WebGLContextGroup> group)
+{
+ return adoptRef(new WebGLShareGroup(group));
+}
-} // namespace IndexedDB
+PassRefPtr<WebGLContextGroup> WebGLShareGroup::contextGroup() const
+{
+ return m_contextGroup;
+}
} // namespace WebCore
-
-#endif // IndexedDB_h

Powered by Google App Engine
This is Rietveld 408576698