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

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

Issue 12875005: Add support for IMG's MSAA extension. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | src/gpu/gl/GrGpuGL.cpp » ('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 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 NULL == fBlitFramebuffer) { 316 NULL == fBlitFramebuffer) {
317 return false; 317 return false;
318 } 318 }
319 } 319 }
320 if (extensions.has("GL_APPLE_framebuffer_multisample")) { 320 if (extensions.has("GL_APPLE_framebuffer_multisample")) {
321 if (NULL == fRenderbufferStorageMultisample || 321 if (NULL == fRenderbufferStorageMultisample ||
322 NULL == fResolveMultisampleFramebuffer) { 322 NULL == fResolveMultisampleFramebuffer) {
323 return false; 323 return false;
324 } 324 }
325 } 325 }
326 if (extensions.has("GL_IMG_multisampled_render_to_texture")) {
327 if (NULL == fRenderbufferStorageMultisample ||
328 NULL == fFramebufferTexture2DMultisample) {
329 return false;
330 }
331 }
326 } 332 }
327 333
328 // On ES buffer mapping is an extension. On Desktop 334 // On ES buffer mapping is an extension. On Desktop
329 // buffer mapping was part of original VBO extension 335 // buffer mapping was part of original VBO extension
330 // which we require. 336 // which we require.
331 if (kDesktop_GrGLBinding == binding || extensions.has("GL_OES_mapbuffer")) { 337 if (kDesktop_GrGLBinding == binding || extensions.has("GL_OES_mapbuffer")) {
332 if (NULL == fMapBuffer || 338 if (NULL == fMapBuffer ||
333 NULL == fUnmapBuffer) { 339 NULL == fUnmapBuffer) {
334 return false; 340 return false;
335 } 341 }
(...skipping 26 matching lines...) Expand all
362 if (NULL == fBindVertexArray || 368 if (NULL == fBindVertexArray ||
363 NULL == fDeleteVertexArrays || 369 NULL == fDeleteVertexArrays ||
364 NULL == fGenVertexArrays) { 370 NULL == fGenVertexArrays) {
365 return false; 371 return false;
366 } 372 }
367 } 373 }
368 } 374 }
369 375
370 return true; 376 return true;
371 } 377 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698