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

Side by Side Diff: Source/modules/webgl/ANGLEInstancedArrays.cpp

Issue 1281953003: Revert of [Oilpan] Migrate classes under module/webgl onto oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 ANGLEInstancedArrays::~ANGLEInstancedArrays() 45 ANGLEInstancedArrays::~ANGLEInstancedArrays()
46 { 46 {
47 } 47 }
48 48
49 WebGLExtensionName ANGLEInstancedArrays::name() const 49 WebGLExtensionName ANGLEInstancedArrays::name() const
50 { 50 {
51 return ANGLEInstancedArraysName; 51 return ANGLEInstancedArraysName;
52 } 52 }
53 53
54 ANGLEInstancedArrays* ANGLEInstancedArrays::create(WebGLRenderingContextBase* co ntext) 54 PassRefPtrWillBeRawPtr<ANGLEInstancedArrays> ANGLEInstancedArrays::create(WebGLR enderingContextBase* context)
55 { 55 {
56 return new ANGLEInstancedArrays(context); 56 return adoptRefWillBeNoop(new ANGLEInstancedArrays(context));
57 } 57 }
58 58
59 bool ANGLEInstancedArrays::supported(WebGLRenderingContextBase* context) 59 bool ANGLEInstancedArrays::supported(WebGLRenderingContextBase* context)
60 { 60 {
61 return context->extensionsUtil()->supportsExtension("GL_ANGLE_instanced_arra ys"); 61 return context->extensionsUtil()->supportsExtension("GL_ANGLE_instanced_arra ys");
62 } 62 }
63 63
64 const char* ANGLEInstancedArrays::extensionName() 64 const char* ANGLEInstancedArrays::extensionName()
65 { 65 {
66 return "ANGLE_instanced_arrays"; 66 return "ANGLE_instanced_arrays";
(...skipping 20 matching lines...) Expand all
87 void ANGLEInstancedArrays::vertexAttribDivisorANGLE(GLuint index, GLuint divisor ) 87 void ANGLEInstancedArrays::vertexAttribDivisorANGLE(GLuint index, GLuint divisor )
88 { 88 {
89 WebGLExtensionScopedContext scoped(this); 89 WebGLExtensionScopedContext scoped(this);
90 if (scoped.isLost()) 90 if (scoped.isLost())
91 return; 91 return;
92 92
93 scoped.context()->vertexAttribDivisorANGLE(index, divisor); 93 scoped.context()->vertexAttribDivisorANGLE(index, divisor);
94 } 94 }
95 95
96 } // namespace blink 96 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/webgl/ANGLEInstancedArrays.h ('k') | Source/modules/webgl/ANGLEInstancedArrays.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698