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

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

Issue 1039693004: Add tokens and entry points for KHR_blend_equation_advanced (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Disable fBlendEquation validation Created 5 years, 8 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/gl/GrGLCreateNullInterface.cpp ('k') | src/gpu/gl/GrGLInterface.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 9
10 #ifndef GrGLDefines_DEFINED 10 #ifndef GrGLDefines_DEFINED
(...skipping 27 matching lines...) Expand all
38 /* AlphaFunction (not supported in ES20) */ 38 /* AlphaFunction (not supported in ES20) */
39 /* GL_NEVER */ 39 /* GL_NEVER */
40 /* GL_LESS */ 40 /* GL_LESS */
41 /* GL_EQUAL */ 41 /* GL_EQUAL */
42 /* GL_LEQUAL */ 42 /* GL_LEQUAL */
43 /* GL_GREATER */ 43 /* GL_GREATER */
44 /* GL_NOTEQUAL */ 44 /* GL_NOTEQUAL */
45 /* GL_GEQUAL */ 45 /* GL_GEQUAL */
46 /* GL_ALWAYS */ 46 /* GL_ALWAYS */
47 47
48 /* Basic OpenGL blend equations */
49 #define GR_GL_FUNC_ADD 0x8006
50 #define GR_GL_FUNC_SUBTRACT 0x800A
51 #define GR_GL_FUNC_REVERSE_SUBTRACT 0x800B
52
53 /* GL_KHR_blend_equation_advanced */
54 #define GR_GL_SCREEN 0x9295
55 #define GR_GL_OVERLAY 0x9296
56 #define GR_GL_DARKEN 0x9297
57 #define GR_GL_LIGHTEN 0x9298
58 #define GR_GL_COLORDODGE 0x9299
59 #define GR_GL_COLORBURN 0x929A
60 #define GR_GL_HARDLIGHT 0x929B
61 #define GR_GL_SOFTLIGHT 0x929C
62 #define GR_GL_DIFFERENCE 0x929E
63 #define GR_GL_EXCLUSION 0x92A0
64 #define GR_GL_MULTIPLY 0x9294
65 #define GR_GL_HSL_HUE 0x92AD
66 #define GR_GL_HSL_SATURATION 0x92AE
67 #define GR_GL_HSL_COLOR 0x92AF
68 #define GR_GL_HSL_LUMINOSITY 0x92B0
69
48 /* BlendingFactorDest */ 70 /* BlendingFactorDest */
49 #define GR_GL_ZERO 0 71 #define GR_GL_ZERO 0
50 #define GR_GL_ONE 1 72 #define GR_GL_ONE 1
51 #define GR_GL_SRC_COLOR 0x0300 73 #define GR_GL_SRC_COLOR 0x0300
52 #define GR_GL_ONE_MINUS_SRC_COLOR 0x0301 74 #define GR_GL_ONE_MINUS_SRC_COLOR 0x0301
53 #define GR_GL_SRC_ALPHA 0x0302 75 #define GR_GL_SRC_ALPHA 0x0302
54 #define GR_GL_ONE_MINUS_SRC_ALPHA 0x0303 76 #define GR_GL_ONE_MINUS_SRC_ALPHA 0x0303
55 #define GR_GL_DST_ALPHA 0x0304 77 #define GR_GL_DST_ALPHA 0x0304
56 #define GR_GL_ONE_MINUS_DST_ALPHA 0x0305 78 #define GR_GL_ONE_MINUS_DST_ALPHA 0x0305
57 79
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 // NV_path_rendering extension to EXT_direct_state_access: 872 // NV_path_rendering extension to EXT_direct_state_access:
851 // [the matrix functions] must support the PATH_PROJECTION_NV and 873 // [the matrix functions] must support the PATH_PROJECTION_NV and
852 // PATH_MODELVIEW_NV tokens for matrixMode. 874 // PATH_MODELVIEW_NV tokens for matrixMode.
853 #define GR_GL_PATH_PROJECTION 0x1701 875 #define GR_GL_PATH_PROJECTION 0x1701
854 #define GR_GL_PATH_MODELVIEW 0x1700 876 #define GR_GL_PATH_MODELVIEW 0x1700
855 877
856 /* ARM specific define for MSAA support on framebuffer fetch */ 878 /* ARM specific define for MSAA support on framebuffer fetch */
857 #define GR_GL_FETCH_PER_SAMPLE_ARM 0x8F65 879 #define GR_GL_FETCH_PER_SAMPLE_ARM 0x8F65
858 880
859 #endif 881 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCreateNullInterface.cpp ('k') | src/gpu/gl/GrGLInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698