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

Side by Side Diff: sky/engine/core/html/canvas/WebGLVertexArrayObjectOES.cpp

Issue 706123005: Remove nop ScriptWrappable::init calls (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
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 27 matching lines...) Expand all
38 38
39 WebGLVertexArrayObjectOES::WebGLVertexArrayObjectOES(WebGLRenderingContextBase* ctx, VaoType type) 39 WebGLVertexArrayObjectOES::WebGLVertexArrayObjectOES(WebGLRenderingContextBase* ctx, VaoType type)
40 : WebGLContextObject(ctx) 40 : WebGLContextObject(ctx)
41 , m_type(type) 41 , m_type(type)
42 , m_hasEverBeenBound(false) 42 , m_hasEverBeenBound(false)
43 #if ENABLE(OILPAN) 43 #if ENABLE(OILPAN)
44 , m_destructionInProgress(false) 44 , m_destructionInProgress(false)
45 #endif 45 #endif
46 , m_boundElementArrayBuffer(nullptr) 46 , m_boundElementArrayBuffer(nullptr)
47 { 47 {
48 ScriptWrappable::init(this);
49 m_vertexAttribState.resize(ctx->maxVertexAttribs()); 48 m_vertexAttribState.resize(ctx->maxVertexAttribs());
50 49
51 switch (m_type) { 50 switch (m_type) {
52 case VaoTypeDefault: 51 case VaoTypeDefault:
53 break; 52 break;
54 default: 53 default:
55 setObject(context()->webContext()->createVertexArrayOES()); 54 setObject(context()->webContext()->createVertexArrayOES());
56 break; 55 break;
57 } 56 }
58 } 57 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 155 }
157 } 156 }
158 157
159 void WebGLVertexArrayObjectOES::setVertexAttribDivisor(GLuint index, GLuint divi sor) 158 void WebGLVertexArrayObjectOES::setVertexAttribDivisor(GLuint index, GLuint divi sor)
160 { 159 {
161 VertexAttribState& state = m_vertexAttribState[index]; 160 VertexAttribState& state = m_vertexAttribState[index];
162 state.divisor = divisor; 161 state.divisor = divisor;
163 } 162 }
164 163
165 } 164 }
OLDNEW
« no previous file with comments | « sky/engine/core/html/canvas/WebGLUniformLocation.cpp ('k') | sky/engine/core/html/ime/InputMethodContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698