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

Side by Side Diff: src/gpu/gl/GrGLInterface.cpp

Issue 140933005: Remove GR_GL_IGNORE_ES3_MSAA.s (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix whitespace Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 if (extensions.has("GL_EXT_framebuffer_blit") && 321 if (extensions.has("GL_EXT_framebuffer_blit") &&
322 NULL == fBlitFramebuffer) { 322 NULL == fBlitFramebuffer) {
323 return false; 323 return false;
324 } 324 }
325 if (extensions.has("GL_EXT_framebuffer_multisample") && 325 if (extensions.has("GL_EXT_framebuffer_multisample") &&
326 NULL == fRenderbufferStorageMultisample) { 326 NULL == fRenderbufferStorageMultisample) {
327 return false; 327 return false;
328 } 328 }
329 } 329 }
330 } else { 330 } else {
331 #if GR_GL_IGNORE_ES3_MSAA
332 if (extensions.has("GL_CHROMIUM_framebuffer_multisample")) {
333 if (NULL == fRenderbufferStorageMultisample ||
334 NULL == fBlitFramebuffer) {
335 return false;
336 }
337 } else if (extensions.has("GL_APPLE_framebuffer_multisample")) {
338 if (NULL == fRenderbufferStorageMultisample ||
339 NULL == fResolveMultisampleFramebuffer) {
340 return false;
341 }
342 } else if (extensions.has("GL_IMG_multisampled_render_to_texture") ||
343 extensions.has("GL_EXT_multisampled_render_to_texture")) {
344 if (NULL == fRenderbufferStorageMultisample ||
345 NULL == fFramebufferTexture2DMultisample) {
346 return false;
347 }
348 }
349 #else
350 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_CHROMIUM_framebuffer_m ultisample")) { 331 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_CHROMIUM_framebuffer_m ultisample")) {
351 if (NULL == fRenderbufferStorageMultisample || 332 if (NULL == fRenderbufferStorageMultisample ||
352 NULL == fBlitFramebuffer) { 333 NULL == fBlitFramebuffer) {
353 return false; 334 return false;
354 } 335 }
355 } 336 }
356 if (extensions.has("GL_APPLE_framebuffer_multisample")) { 337 if (extensions.has("GL_APPLE_framebuffer_multisample")) {
357 if (NULL == fRenderbufferStorageMultisampleES2APPLE || 338 if (NULL == fRenderbufferStorageMultisampleES2APPLE ||
358 NULL == fResolveMultisampleFramebuffer) { 339 NULL == fResolveMultisampleFramebuffer) {
359 return false; 340 return false;
360 } 341 }
361 } 342 }
362 if (extensions.has("GL_IMG_multisampled_render_to_texture") || 343 if (extensions.has("GL_IMG_multisampled_render_to_texture") ||
363 extensions.has("GL_EXT_multisampled_render_to_texture")) { 344 extensions.has("GL_EXT_multisampled_render_to_texture")) {
364 if (NULL == fRenderbufferStorageMultisampleES2EXT || 345 if (NULL == fRenderbufferStorageMultisampleES2EXT ||
365 NULL == fFramebufferTexture2DMultisample) { 346 NULL == fFramebufferTexture2DMultisample) {
366 return false; 347 return false;
367 } 348 }
368 } 349 }
369 #endif
370 } 350 }
371 351
372 // On ES buffer mapping is an extension. On Desktop 352 // On ES buffer mapping is an extension. On Desktop
373 // buffer mapping was part of original VBO extension 353 // buffer mapping was part of original VBO extension
374 // which we require. 354 // which we require.
375 if (kGL_GrGLStandard == fStandard || extensions.has("GL_OES_mapbuffer")) { 355 if (kGL_GrGLStandard == fStandard || extensions.has("GL_OES_mapbuffer")) {
376 if (NULL == fMapBuffer || 356 if (NULL == fMapBuffer ||
377 NULL == fUnmapBuffer) { 357 NULL == fUnmapBuffer) {
378 return false; 358 return false;
379 } 359 }
(...skipping 27 matching lines...) Expand all
407 if (NULL == fBindVertexArray || 387 if (NULL == fBindVertexArray ||
408 NULL == fDeleteVertexArrays || 388 NULL == fDeleteVertexArrays ||
409 NULL == fGenVertexArrays) { 389 NULL == fGenVertexArrays) {
410 return false; 390 return false;
411 } 391 }
412 } 392 }
413 } 393 }
414 394
415 return true; 395 return true;
416 } 396 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698