Index: Source/core/html/canvas/WebGLShareGroup.cpp |
diff --git a/Source/core/platform/network/DNS.cpp b/Source/core/html/canvas/WebGLShareGroup.cpp |
similarity index 68% |
copy from Source/core/platform/network/DNS.cpp |
copy to Source/core/html/canvas/WebGLShareGroup.cpp |
index fe9c68373f801982a2c9b17e3c6aeaf4c7019cf0..27687bfd5a8fc63d5d3e716e5d3b3ec45a174527 100644 |
--- a/Source/core/platform/network/DNS.cpp |
+++ b/Source/core/html/canvas/WebGLShareGroup.cpp |
@@ -1,5 +1,4 @@ |
/* |
- * Copyright (C) 2008 Collin Jackson <collinj@webkit.org> |
* Copyright (C) 2013 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
@@ -11,10 +10,10 @@ |
* 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 APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY |
+ * THIS SOFTWARE IS PROVIDED BY GOOGLE, INC. ``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 APPLE COMPUTER, INC. OR |
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GOOGLE, INC. 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 |
@@ -25,15 +24,30 @@ |
*/ |
#include "config.h" |
-#include "core/platform/network/DNS.h" |
-#include "public/platform/Platform.h" |
+#include "core/html/canvas/WebGLShareGroup.h" |
+ |
+#include "core/html/canvas/WebGLContextGroup.h" |
namespace WebCore { |
-void prefetchDNS(const String& hostname) |
+WebGLShareGroup::WebGLShareGroup(PassRefPtr<WebGLContextGroup> group) |
+ : m_contextGroup(group) |
+{ |
+} |
+ |
+WebGLShareGroup::~WebGLShareGroup() |
+{ |
+} |
+ |
+PassRefPtr<WebGLShareGroup> WebGLShareGroup::create(PassRefPtr<WebGLContextGroup> group) |
+{ |
+ return adoptRef(new WebGLShareGroup(group)); |
+} |
+ |
+PassRefPtr<WebGLContextGroup> WebGLShareGroup::contextGroup() const |
{ |
- WebKit::Platform::current()->prefetchHostName(hostname); |
+ return m_contextGroup; |
} |
} // namespace WebCore |