| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #include "GrGLAssembleInterface.h" | 10 #include "GrGLAssembleInterface.h" |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 // In general we have a policy against removing extension strings when t
he driver does | 758 // In general we have a policy against removing extension strings when t
he driver does |
| 759 // not provide function pointers for an advertised extension. However, b
ecause there is a | 759 // not provide function pointers for an advertised extension. However, b
ecause there is a |
| 760 // known device that advertises GL_KHR_debug but fails to provide the fu
nctions and this is | 760 // known device that advertises GL_KHR_debug but fails to provide the fu
nctions and this is |
| 761 // a debugging- only extension we've made an exception. This also can ha
ppen when using | 761 // a debugging- only extension we've made an exception. This also can ha
ppen when using |
| 762 // APITRACE. | 762 // APITRACE. |
| 763 if (!interface->fFunctions.fDebugMessageControl) { | 763 if (!interface->fFunctions.fDebugMessageControl) { |
| 764 extensions.remove("GL_KHR_debug"); | 764 extensions.remove("GL_KHR_debug"); |
| 765 } | 765 } |
| 766 } | 766 } |
| 767 | 767 |
| 768 if (extensions.has("GL_CHROMIUM_bind_uniform_location")) { |
| 769 GET_PROC_SUFFIX(BindUniformLocation, CHROMIUM); |
| 770 } |
| 771 |
| 768 interface->fStandard = kGLES_GrGLStandard; | 772 interface->fStandard = kGLES_GrGLStandard; |
| 769 interface->fExtensions.swap(&extensions); | 773 interface->fExtensions.swap(&extensions); |
| 770 | 774 |
| 771 return interface; | 775 return interface; |
| 772 } | 776 } |
| OLD | NEW |