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

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

Issue 1202293002: Move GLSL-specific routines/classes to separate glsl directory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename GrGLGLSL.{cpp,h} Created 5 years, 5 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 | « src/gpu/glsl/GrGLSLCaps.h ('k') | src/gpu/glsl/GrGLSL_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8
9 #include "GrGLSLCaps.h"
10
11 //////////////////////////////////////////////////////////////////////////////// ////////////
12
13 GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options) {
14 fDropsTileOnZeroDivide = false;
15 fFBFetchSupport = false;
16 fFBFetchNeedsCustomOutput = false;
17 fBindlessTextureSupport = false;
18 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction;
19 fFBFetchColorName = NULL;
20 fFBFetchExtensionString = NULL;
21 }
22
23 SkString GrGLSLCaps::dump() const {
24 SkString r = INHERITED::dump();
25
26 static const char* kAdvBlendEqInteractionStr[] = {
27 "Not Supported",
28 "Automatic",
29 "General Enable",
30 "Specific Enables",
31 };
32 GR_STATIC_ASSERT(0 == kNotSupported_AdvBlendEqInteraction);
33 GR_STATIC_ASSERT(1 == kAutomatic_AdvBlendEqInteraction);
34 GR_STATIC_ASSERT(2 == kGeneralEnable_AdvBlendEqInteraction);
35 GR_STATIC_ASSERT(3 == kSpecificEnables_AdvBlendEqInteraction);
36 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kAdvBlendEqInteractionStr) == kLast_AdvBlend EqInteraction + 1);
37
38 r.appendf("--- GLSL-Specific ---\n");
39
40 r.appendf("FB Fetch Support: %s\n", (fFBFetchSupport ? "YES" : "NO"));
41 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
42 r.appendf("Bindless texture support: %s\n", (fBindlessTextureSupport ? "YES" : "NO"));
43 r.appendf("Advanced blend equation interaction: %s\n",
44 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]);
45 return r;
46 }
47
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLCaps.h ('k') | src/gpu/glsl/GrGLSL_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698