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

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

Issue 14091008: Add support for GL_EXT_multisampled_render_to_texture. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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/GrGLCaps.cpp ('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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 NULL == fBlitFramebuffer) { 326 NULL == fBlitFramebuffer) {
327 return false; 327 return false;
328 } 328 }
329 } 329 }
330 if (extensions.has("GL_APPLE_framebuffer_multisample")) { 330 if (extensions.has("GL_APPLE_framebuffer_multisample")) {
331 if (NULL == fRenderbufferStorageMultisample || 331 if (NULL == fRenderbufferStorageMultisample ||
332 NULL == fResolveMultisampleFramebuffer) { 332 NULL == fResolveMultisampleFramebuffer) {
333 return false; 333 return false;
334 } 334 }
335 } 335 }
336 if (extensions.has("GL_IMG_multisampled_render_to_texture")) { 336 if (extensions.has("GL_IMG_multisampled_render_to_texture") ||
337 extensions.has("GL_EXT_multisampled_render_to_texture")) {
337 if (NULL == fRenderbufferStorageMultisample || 338 if (NULL == fRenderbufferStorageMultisample ||
338 NULL == fFramebufferTexture2DMultisample) { 339 NULL == fFramebufferTexture2DMultisample) {
339 return false; 340 return false;
340 } 341 }
341 } 342 }
342 } 343 }
343 344
344 // On ES buffer mapping is an extension. On Desktop 345 // On ES buffer mapping is an extension. On Desktop
345 // buffer mapping was part of original VBO extension 346 // buffer mapping was part of original VBO extension
346 // which we require. 347 // which we require.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 if (NULL == fBindVertexArray || 379 if (NULL == fBindVertexArray ||
379 NULL == fDeleteVertexArrays || 380 NULL == fDeleteVertexArrays ||
380 NULL == fGenVertexArrays) { 381 NULL == fGenVertexArrays) {
381 return false; 382 return false;
382 } 383 }
383 } 384 }
384 } 385 }
385 386
386 return true; 387 return true;
387 } 388 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698