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

Side by Side Diff: Source/core/html/canvas/OESVertexArrayObject.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/canvas/OESTextureHalfFloatLinear.cpp ('k') | Source/core/html/canvas/Path2D.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 18 matching lines...) Expand all
29 29
30 #include "bindings/core/v8/ExceptionState.h" 30 #include "bindings/core/v8/ExceptionState.h"
31 #include "core/html/canvas/WebGLRenderingContextBase.h" 31 #include "core/html/canvas/WebGLRenderingContextBase.h"
32 #include "core/html/canvas/WebGLVertexArrayObjectOES.h" 32 #include "core/html/canvas/WebGLVertexArrayObjectOES.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 OESVertexArrayObject::OESVertexArrayObject(WebGLRenderingContextBase* context) 36 OESVertexArrayObject::OESVertexArrayObject(WebGLRenderingContextBase* context)
37 : WebGLExtension(context) 37 : WebGLExtension(context)
38 { 38 {
39 ScriptWrappable::init(this);
40 context->extensionsUtil()->ensureExtensionEnabled("GL_OES_vertex_array_objec t"); 39 context->extensionsUtil()->ensureExtensionEnabled("GL_OES_vertex_array_objec t");
41 } 40 }
42 41
43 OESVertexArrayObject::~OESVertexArrayObject() 42 OESVertexArrayObject::~OESVertexArrayObject()
44 { 43 {
45 } 44 }
46 45
47 WebGLExtensionName OESVertexArrayObject::name() const 46 WebGLExtensionName OESVertexArrayObject::name() const
48 { 47 {
49 return OESVertexArrayObjectName; 48 return OESVertexArrayObjectName;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 { 110 {
112 return context->extensionsUtil()->supportsExtension("GL_OES_vertex_array_obj ect"); 111 return context->extensionsUtil()->supportsExtension("GL_OES_vertex_array_obj ect");
113 } 112 }
114 113
115 const char* OESVertexArrayObject::extensionName() 114 const char* OESVertexArrayObject::extensionName()
116 { 115 {
117 return "OES_vertex_array_object"; 116 return "OES_vertex_array_object";
118 } 117 }
119 118
120 } // namespace blink 119 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/canvas/OESTextureHalfFloatLinear.cpp ('k') | Source/core/html/canvas/Path2D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698