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

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

Issue 12965018: Move nested class GrDrawTarget::Caps out as GrDrawTargetCaps. (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
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
11 11
12 #include "GrDrawTargetCaps.h"
13 #include "GrGLStencilBuffer.h"
12 #include "SkTArray.h" 14 #include "SkTArray.h"
13 #include "SkTDArray.h" 15 #include "SkTDArray.h"
14 #include "GrGLStencilBuffer.h"
15 #include "GrDrawTarget.h"
16 16
17 class GrGLContextInfo; 17 class GrGLContextInfo;
18 18
19 /** 19 /**
20 * Stores some capabilities of a GL context. Most are determined by the GL 20 * Stores some capabilities of a GL context. Most are determined by the GL
21 * version and the extensions string. It also tracks formats that have passed 21 * version and the extensions string. It also tracks formats that have passed
22 * the FBO completeness test. 22 * the FBO completeness test.
23 */ 23 */
24 class GrGLCaps : public GrDrawTarget::Caps { 24 class GrGLCaps : public GrDrawTargetCaps {
25 public: 25 public:
26 SK_DECLARE_INST_COUNT(GrGLCaps) 26 SK_DECLARE_INST_COUNT(GrGLCaps)
27 27
28 typedef GrGLStencilBuffer::Format StencilFormat; 28 typedef GrGLStencilBuffer::Format StencilFormat;
29 29
30 /** 30 /**
31 * Represents a supported multisampling/coverage-sampling mode. 31 * Represents a supported multisampling/coverage-sampling mode.
32 */ 32 */
33 struct MSAACoverageMode { 33 struct MSAACoverageMode {
34 // "Coverage samples" includes samples that actually have color, depth, 34 // "Coverage samples" includes samples that actually have color, depth,
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 bool fTextureUsageSupport : 1; 305 bool fTextureUsageSupport : 1;
306 bool fTexStorageSupport : 1; 306 bool fTexStorageSupport : 1;
307 bool fTextureRedSupport : 1; 307 bool fTextureRedSupport : 1;
308 bool fImagingSupport : 1; 308 bool fImagingSupport : 1;
309 bool fTwoFormatLimit : 1; 309 bool fTwoFormatLimit : 1;
310 bool fFragCoordsConventionSupport : 1; 310 bool fFragCoordsConventionSupport : 1;
311 bool fVertexArrayObjectSupport : 1; 311 bool fVertexArrayObjectSupport : 1;
312 bool fUseNonVBOVertexAndIndexDynamicData : 1; 312 bool fUseNonVBOVertexAndIndexDynamicData : 1;
313 bool fIsCoreProfile : 1; 313 bool fIsCoreProfile : 1;
314 314
315 typedef GrDrawTarget::Caps INHERITED; 315 typedef GrDrawTargetCaps INHERITED;
316 }; 316 };
317 317
318 #endif 318 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698