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

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

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/WebGLShader.idl ('k') | Source/core/html/canvas/WebGLShareGroup.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLShareGroup.h
diff --git a/Source/core/html/TextMetrics.h b/Source/core/html/canvas/WebGLShareGroup.h
similarity index 66%
copy from Source/core/html/TextMetrics.h
copy to Source/core/html/canvas/WebGLShareGroup.h
index 4a5ab2af4864b2453b5dd91ea22324cce79176bc..08e8685bd390fcdc08932a1b4ad28e6d8c773dc1 100644
--- a/Source/core/html/TextMetrics.h
+++ b/Source/core/html/canvas/WebGLShareGroup.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008 Apple Inc. All Rights Reserved.
+ * Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -10,45 +10,43 @@
* 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 INC. ``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 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
* 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.
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef TextMetrics_h
-#define TextMetrics_h
+#ifndef WebGLShareGroup_h
+#define WebGLShareGroup_h
-#include "bindings/v8/ScriptWrappable.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
+#include "wtf/RefPtr.h"
namespace WebCore {
-class TextMetrics : public RefCounted<TextMetrics>, public ScriptWrappable {
+class WebGLContextGroup;
+
+class WebGLShareGroup : public RefCounted<WebGLShareGroup> {
public:
- static PassRefPtr<TextMetrics> create() { return adoptRef(new TextMetrics); }
+ static PassRefPtr<WebGLShareGroup> create(PassRefPtr<WebGLContextGroup>);
- float width() const { return m_width; }
- void setWidth(float w) { m_width = w; }
+ virtual ~WebGLShareGroup();
+ PassRefPtr<WebGLContextGroup> contextGroup() const;
private:
- TextMetrics()
- : m_width(0)
- {
- ScriptWrappable::init(this);
- }
+ WebGLShareGroup(PassRefPtr<WebGLContextGroup>);
- float m_width;
+ RefPtr<WebGLContextGroup> m_contextGroup;
};
} // namespace WebCore
-#endif // TextMetrics_h
+#endif // WebGLShareGroup_h
« no previous file with comments | « Source/core/html/canvas/WebGLShader.idl ('k') | Source/core/html/canvas/WebGLShareGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698