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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/OESVertexArrayObject.cpp

Issue 1833273002: Remove WebGraphicsContext3D::getGLES2Interface(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getgles2: rebase Created 4 years, 8 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 void OESVertexArrayObject::deleteVertexArrayOES(ScriptState* scriptState, WebGLV ertexArrayObjectOES* arrayObject) 66 void OESVertexArrayObject::deleteVertexArrayOES(ScriptState* scriptState, WebGLV ertexArrayObjectOES* arrayObject)
67 { 67 {
68 WebGLExtensionScopedContext scoped(this); 68 WebGLExtensionScopedContext scoped(this);
69 if (!arrayObject || scoped.isLost()) 69 if (!arrayObject || scoped.isLost())
70 return; 70 return;
71 71
72 if (!arrayObject->isDefaultObject() && arrayObject == scoped.context()->m_bo undVertexArrayObject) 72 if (!arrayObject->isDefaultObject() && arrayObject == scoped.context()->m_bo undVertexArrayObject)
73 scoped.context()->setBoundVertexArrayObject(scriptState, nullptr); 73 scoped.context()->setBoundVertexArrayObject(scriptState, nullptr);
74 74
75 arrayObject->deleteObject(scoped.context()->webContext(), scoped.context()-> contextGL()); 75 arrayObject->deleteObject(scoped.context()->contextGL());
76 } 76 }
77 77
78 GLboolean OESVertexArrayObject::isVertexArrayOES(WebGLVertexArrayObjectOES* arra yObject) 78 GLboolean OESVertexArrayObject::isVertexArrayOES(WebGLVertexArrayObjectOES* arra yObject)
79 { 79 {
80 WebGLExtensionScopedContext scoped(this); 80 WebGLExtensionScopedContext scoped(this);
81 if (!arrayObject || scoped.isLost()) 81 if (!arrayObject || scoped.isLost())
82 return 0; 82 return 0;
83 83
84 if (!arrayObject->hasEverBeenBound()) 84 if (!arrayObject->hasEverBeenBound())
85 return 0; 85 return 0;
(...skipping 27 matching lines...) Expand all
113 { 113 {
114 return context->extensionsUtil()->supportsExtension("GL_OES_vertex_array_obj ect"); 114 return context->extensionsUtil()->supportsExtension("GL_OES_vertex_array_obj ect");
115 } 115 }
116 116
117 const char* OESVertexArrayObject::extensionName() 117 const char* OESVertexArrayObject::extensionName()
118 { 118 {
119 return "OES_vertex_array_object"; 119 return "OES_vertex_array_object";
120 } 120 }
121 121
122 } // namespace blink 122 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698