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

Side by Side Diff: src/gpu/glsl/GrGLSLCaps.cpp

Issue 1203153002: Add default for GrGLSLCaps::fGLSLGeneration (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | 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 #include "GrGLSLCaps.h" 9 #include "GrGLSLCaps.h"
10 10
11 //////////////////////////////////////////////////////////////////////////////// //////////// 11 //////////////////////////////////////////////////////////////////////////////// ////////////
12 12
13 GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options) { 13 GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options) {
14 fGLSLGeneration = k330_GrGLSLGeneration;
15
14 fDropsTileOnZeroDivide = false; 16 fDropsTileOnZeroDivide = false;
15 fFBFetchSupport = false; 17 fFBFetchSupport = false;
16 fFBFetchNeedsCustomOutput = false; 18 fFBFetchNeedsCustomOutput = false;
17 fBindlessTextureSupport = false; 19 fBindlessTextureSupport = false;
18 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction;
19 fFBFetchColorName = NULL; 20 fFBFetchColorName = NULL;
20 fFBFetchExtensionString = NULL; 21 fFBFetchExtensionString = NULL;
22 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction;
21 } 23 }
22 24
23 SkString GrGLSLCaps::dump() const { 25 SkString GrGLSLCaps::dump() const {
24 SkString r = INHERITED::dump(); 26 SkString r = INHERITED::dump();
25 27
26 static const char* kAdvBlendEqInteractionStr[] = { 28 static const char* kAdvBlendEqInteractionStr[] = {
27 "Not Supported", 29 "Not Supported",
28 "Automatic", 30 "Automatic",
29 "General Enable", 31 "General Enable",
30 "Specific Enables", 32 "Specific Enables",
31 }; 33 };
32 GR_STATIC_ASSERT(0 == kNotSupported_AdvBlendEqInteraction); 34 GR_STATIC_ASSERT(0 == kNotSupported_AdvBlendEqInteraction);
33 GR_STATIC_ASSERT(1 == kAutomatic_AdvBlendEqInteraction); 35 GR_STATIC_ASSERT(1 == kAutomatic_AdvBlendEqInteraction);
34 GR_STATIC_ASSERT(2 == kGeneralEnable_AdvBlendEqInteraction); 36 GR_STATIC_ASSERT(2 == kGeneralEnable_AdvBlendEqInteraction);
35 GR_STATIC_ASSERT(3 == kSpecificEnables_AdvBlendEqInteraction); 37 GR_STATIC_ASSERT(3 == kSpecificEnables_AdvBlendEqInteraction);
36 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kAdvBlendEqInteractionStr) == kLast_AdvBlend EqInteraction + 1); 38 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kAdvBlendEqInteractionStr) == kLast_AdvBlend EqInteraction + 1);
37 39
38 r.appendf("--- GLSL-Specific ---\n"); 40 r.appendf("--- GLSL-Specific ---\n");
39 41
40 r.appendf("FB Fetch Support: %s\n", (fFBFetchSupport ? "YES" : "NO")); 42 r.appendf("FB Fetch Support: %s\n", (fFBFetchSupport ? "YES" : "NO"));
41 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO")); 43 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
42 r.appendf("Bindless texture support: %s\n", (fBindlessTextureSupport ? "YES" : "NO")); 44 r.appendf("Bindless texture support: %s\n", (fBindlessTextureSupport ? "YES" : "NO"));
43 r.appendf("Advanced blend equation interaction: %s\n", 45 r.appendf("Advanced blend equation interaction: %s\n",
44 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); 46 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]);
45 return r; 47 return r;
46 } 48 }
47 49
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698