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

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

Issue 1115553002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 7 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // is for the benefit of Oilpan, where this vertex array object 67 // is for the benefit of Oilpan, where this vertex array object
68 // isn't detached when it and the WebGLRenderingContextBase object 68 // isn't detached when it and the WebGLRenderingContextBase object
69 // it is registered with are both finalized. Without Oilpan, the 69 // it is registered with are both finalized. Without Oilpan, the
70 // object will have been detached. 70 // object will have been detached.
71 // 71 //
72 // To keep the code regular, the trivial detach()ment is always 72 // To keep the code regular, the trivial detach()ment is always
73 // performed. 73 // performed.
74 detachAndDeleteObject(); 74 detachAndDeleteObject();
75 } 75 }
76 76
77 void WebGLVertexArrayObjectOES::dispatchDetached(blink::WebGraphicsContext3D* co ntext3d) 77 void WebGLVertexArrayObjectOES::dispatchDetached(WebGraphicsContext3D* context3d )
78 { 78 {
79 if (m_boundElementArrayBuffer) 79 if (m_boundElementArrayBuffer)
80 m_boundElementArrayBuffer->onDetached(context3d); 80 m_boundElementArrayBuffer->onDetached(context3d);
81 81
82 for (size_t i = 0; i < m_vertexAttribState.size(); ++i) { 82 for (size_t i = 0; i < m_vertexAttribState.size(); ++i) {
83 VertexAttribState* state = m_vertexAttribState[i].get(); 83 VertexAttribState* state = m_vertexAttribState[i].get();
84 if (state->bufferBinding) 84 if (state->bufferBinding)
85 state->bufferBinding->onDetached(context3d); 85 state->bufferBinding->onDetached(context3d);
86 } 86 }
87 } 87 }
88 88
89 void WebGLVertexArrayObjectOES::deleteObjectImpl(blink::WebGraphicsContext3D* co ntext3d) 89 void WebGLVertexArrayObjectOES::deleteObjectImpl(WebGraphicsContext3D* context3d )
90 { 90 {
91 switch (m_type) { 91 switch (m_type) {
92 case VaoTypeDefault: 92 case VaoTypeDefault:
93 break; 93 break;
94 default: 94 default:
95 context3d->deleteVertexArrayOES(m_object); 95 context3d->deleteVertexArrayOES(m_object);
96 m_object = 0; 96 m_object = 0;
97 break; 97 break;
98 } 98 }
99 99
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 visitor->trace(bufferBinding); 176 visitor->trace(bufferBinding);
177 } 177 }
178 178
179 DEFINE_TRACE(WebGLVertexArrayObjectOES) 179 DEFINE_TRACE(WebGLVertexArrayObjectOES)
180 { 180 {
181 visitor->trace(m_boundElementArrayBuffer); 181 visitor->trace(m_boundElementArrayBuffer);
182 visitor->trace(m_vertexAttribState); 182 visitor->trace(m_vertexAttribState);
183 WebGLContextObject::trace(visitor); 183 WebGLContextObject::trace(visitor);
184 } 184 }
185 185
186 } 186 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLVertexArrayObjectOES.h ('k') | Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698