OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #include "gl/GrGLInterface.h" | 9 #include "gl/GrGLInterface.h" |
10 #include "gl/GrGLExtensions.h" | 10 #include "gl/GrGLExtensions.h" |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 if (NULL == fFunctions.fTextureBarrier) { | 318 if (NULL == fFunctions.fTextureBarrier) { |
319 RETURN_FALSE_INTERFACE | 319 RETURN_FALSE_INTERFACE |
320 } | 320 } |
321 } | 321 } |
322 } else if (fExtensions.has("GL_NV_texture_barrier")) { | 322 } else if (fExtensions.has("GL_NV_texture_barrier")) { |
323 if (NULL == fFunctions.fTextureBarrier) { | 323 if (NULL == fFunctions.fTextureBarrier) { |
324 RETURN_FALSE_INTERFACE | 324 RETURN_FALSE_INTERFACE |
325 } | 325 } |
326 } | 326 } |
327 | 327 |
| 328 // FIXME: Remove this once Chromium is updated to provide this function |
| 329 #if 0 |
328 if (fExtensions.has("GL_KHR_blend_equation_advanced") || | 330 if (fExtensions.has("GL_KHR_blend_equation_advanced") || |
329 fExtensions.has("GL_NV_blend_equation_advanced")) { | 331 fExtensions.has("GL_NV_blend_equation_advanced")) { |
330 if (NULL == fFunctions.fBlendBarrier) { | 332 if (NULL == fFunctions.fBlendBarrier) { |
331 RETURN_FALSE_INTERFACE | 333 RETURN_FALSE_INTERFACE |
332 } | 334 } |
333 } | 335 } |
| 336 #endif |
334 | 337 |
335 if (fExtensions.has("GL_EXT_discard_framebuffer")) { | 338 if (fExtensions.has("GL_EXT_discard_framebuffer")) { |
336 // FIXME: Remove this once Chromium is updated to provide this function | 339 // FIXME: Remove this once Chromium is updated to provide this function |
337 #if 0 | 340 #if 0 |
338 if (NULL == fFunctions.fDiscardFramebuffer) { | 341 if (NULL == fFunctions.fDiscardFramebuffer) { |
339 RETURN_FALSE_INTERFACE | 342 RETURN_FALSE_INTERFACE |
340 } | 343 } |
341 #endif | 344 #endif |
342 } | 345 } |
343 | 346 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 } | 535 } |
533 | 536 |
534 if (fExtensions.has("GL_NV_framebuffer_mixed_samples")) { | 537 if (fExtensions.has("GL_NV_framebuffer_mixed_samples")) { |
535 if (NULL == fFunctions.fCoverageModulation) { | 538 if (NULL == fFunctions.fCoverageModulation) { |
536 RETURN_FALSE_INTERFACE | 539 RETURN_FALSE_INTERFACE |
537 } | 540 } |
538 } | 541 } |
539 | 542 |
540 return true; | 543 return true; |
541 } | 544 } |
OLD | NEW |