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

Side by Side Diff: src/gpu/gl/GrGLCaps.h

Issue 23404002: Add support for ES3 MSAA. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: rebase and comments Created 7 years, 3 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 | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/gl/GrGLCaps.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 2012 Google Inc. 2 * Copyright 2012 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 #ifndef GrGLCaps_DEFINED 9 #ifndef GrGLCaps_DEFINED
10 #define GrGLCaps_DEFINED 10 #define GrGLCaps_DEFINED
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 /** 47 /**
48 * The type of MSAA for FBOs supported. Different extensions have different 48 * The type of MSAA for FBOs supported. Different extensions have different
49 * semantics of how / when a resolve is performed. 49 * semantics of how / when a resolve is performed.
50 */ 50 */
51 enum MSFBOType { 51 enum MSFBOType {
52 /** 52 /**
53 * no support for MSAA FBOs 53 * no support for MSAA FBOs
54 */ 54 */
55 kNone_MSFBOType = 0, 55 kNone_MSFBOType = 0,
56 /** 56 /**
57 * GL3.0-style MSAA FBO (GL_ARB_framebuffer_object) 57 * GL3.0-style MSAA FBO (GL_ARB_framebuffer_object).
58 */ 58 */
59 kDesktop_ARB_MSFBOType, 59 kDesktop_ARB_MSFBOType,
60 /** 60 /**
61 * earlier GL_EXT_framebuffer* extensions 61 * earlier GL_EXT_framebuffer* extensions
62 */ 62 */
63 kDesktop_EXT_MSFBOType, 63 kDesktop_EXT_MSFBOType,
64 /** 64 /**
65 * Similar to kDesktop_ARB but with additional restrictions on glBlitFra mebuffer.
66 */
67 kES_3_0_MSFBOType,
68 /**
65 * GL_APPLE_framebuffer_multisample ES extension 69 * GL_APPLE_framebuffer_multisample ES extension
66 */ 70 */
67 kES_Apple_MSFBOType, 71 kES_Apple_MSFBOType,
68 /** 72 /**
69 * GL_IMG_multisampled_render_to_texture. This variation does not have M SAA renderbuffers. 73 * GL_IMG_multisampled_render_to_texture. This variation does not have M SAA renderbuffers.
70 * Instead the texture is multisampled when bound to the FBO and then re solved automatically 74 * Instead the texture is multisampled when bound to the FBO and then re solved automatically
71 * when read. It also defines an alternate value for GL_MAX_SAMPLES (whi ch we call 75 * when read. It also defines an alternate value for GL_MAX_SAMPLES (whi ch we call
72 * GR_GL_MAX_SAMPLES_IMG). 76 * GR_GL_MAX_SAMPLES_IMG).
73 */ 77 */
74 kES_IMG_MsToTexture_MSFBOType, 78 kES_IMG_MsToTexture_MSFBOType,
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 bool fVertexArrayObjectSupport : 1; 370 bool fVertexArrayObjectSupport : 1;
367 bool fUseNonVBOVertexAndIndexDynamicData : 1; 371 bool fUseNonVBOVertexAndIndexDynamicData : 1;
368 bool fIsCoreProfile : 1; 372 bool fIsCoreProfile : 1;
369 bool fFixedFunctionSupport : 1; 373 bool fFixedFunctionSupport : 1;
370 bool fDiscardFBSupport : 1; 374 bool fDiscardFBSupport : 1;
371 375
372 typedef GrDrawTargetCaps INHERITED; 376 typedef GrDrawTargetCaps INHERITED;
373 }; 377 };
374 378
375 #endif 379 #endif
OLDNEW
« no previous file with comments | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698