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

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
« no previous file with comments | « Source/core/html/canvas/WebGLShareGroup.h ('k') | Source/core/html/canvas/WebGLShareGroup.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/html/canvas/WebGLShareGroup.h ('k') | Source/core/html/canvas/WebGLShareGroup.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698