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

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

Issue 40203004: Devirtualize WebGLContextGroup, WebGLGetInfo and WebGLUniformLocation's destructors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Mark classes as FINAL Created 7 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
« no previous file with comments | « Source/core/html/canvas/WebGLGetInfo.h ('k') | Source/core/html/canvas/WebGLUniformLocation.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) 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 WebGLGetInfo::WebGLGetInfo(PassRefPtr<WebGLVertexArrayObjectOES> value) 202 WebGLGetInfo::WebGLGetInfo(PassRefPtr<WebGLVertexArrayObjectOES> value)
203 : m_type(kTypeWebGLVertexArrayObjectOES) 203 : m_type(kTypeWebGLVertexArrayObjectOES)
204 , m_bool(false) 204 , m_bool(false)
205 , m_float(0) 205 , m_float(0)
206 , m_int(0) 206 , m_int(0)
207 , m_unsignedInt(0) 207 , m_unsignedInt(0)
208 , m_webglVertexArrayObject(value) 208 , m_webglVertexArrayObject(value)
209 { 209 {
210 } 210 }
211 211
212 WebGLGetInfo::~WebGLGetInfo()
213 {
214 }
215
216 WebGLGetInfo::Type WebGLGetInfo::getType() const 212 WebGLGetInfo::Type WebGLGetInfo::getType() const
217 { 213 {
218 return m_type; 214 return m_type;
219 } 215 }
220 216
221 bool WebGLGetInfo::getBool() const 217 bool WebGLGetInfo::getBool() const
222 { 218 {
223 ASSERT(getType() == kTypeBool); 219 ASSERT(getType() == kTypeBool);
224 return m_bool; 220 return m_bool;
225 } 221 }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 return m_webglUnsignedIntArray; 304 return m_webglUnsignedIntArray;
309 } 305 }
310 306
311 PassRefPtr<WebGLVertexArrayObjectOES> WebGLGetInfo::getWebGLVertexArrayObjectOES () const 307 PassRefPtr<WebGLVertexArrayObjectOES> WebGLGetInfo::getWebGLVertexArrayObjectOES () const
312 { 308 {
313 ASSERT(getType() == kTypeWebGLVertexArrayObjectOES); 309 ASSERT(getType() == kTypeWebGLVertexArrayObjectOES);
314 return m_webglVertexArrayObject; 310 return m_webglVertexArrayObject;
315 } 311 }
316 312
317 } // namespace WebCore 313 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLGetInfo.h ('k') | Source/core/html/canvas/WebGLUniformLocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698