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

Side by Side Diff: src/gpu/gl/GrGLNoOpInterface.cpp

Issue 1039693004: Add tokens and entry points for KHR_blend_equation_advanced (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 #include "GrGLNoOpInterface.h" 8 #include "GrGLNoOpInterface.h"
9 #include "SkString.h" 9 #include "SkString.h"
10 #include "SkThread.h" 10 #include "SkThread.h"
(...skipping 10 matching lines...) Expand all
21 // the OpenGLES 2.0 spec says this must be >= 8 21 // the OpenGLES 2.0 spec says this must be >= 8
22 static const GrGLint kDefaultMaxVaryingVectors = 8; 22 static const GrGLint kDefaultMaxVaryingVectors = 8;
23 23
24 static const char* kExtensions[] = { 24 static const char* kExtensions[] = {
25 "GL_ARB_framebuffer_object", 25 "GL_ARB_framebuffer_object",
26 "GL_ARB_blend_func_extended", 26 "GL_ARB_blend_func_extended",
27 "GL_ARB_timer_query", 27 "GL_ARB_timer_query",
28 "GL_ARB_draw_buffers", 28 "GL_ARB_draw_buffers",
29 "GL_ARB_occlusion_query", 29 "GL_ARB_occlusion_query",
30 "GL_EXT_blend_color", 30 "GL_EXT_blend_color",
31 "GL_EXT_stencil_wrap" 31 "GL_EXT_blend_subtract",
Mark Kilgard 2015/04/02 22:41:43 If you remove EXT_blend_subtract, remove this too,
Chris Dalton 2015/04/17 07:53:42 I don't mind taking it out, but I think we should
bsalomon 2015/04/21 15:21:51 It seems ok to remove both.
32 "GL_EXT_stencil_wrap",
33 "GL_KHR_blend_equation_advanced"
32 }; 34 };
33 35
34 namespace { 36 namespace {
35 const GrGLubyte* combined_extensions_string() { 37 const GrGLubyte* combined_extensions_string() {
36 static SkString gExtString; 38 static SkString gExtString;
37 static SkMutex gMutex; 39 static SkMutex gMutex;
38 gMutex.acquire(); 40 gMutex.acquire();
39 if (0 == gExtString.size()) { 41 if (0 == gExtString.size()) {
40 for (size_t i = 0; i < SK_ARRAY_COUNT(kExtensions) - 1; ++i) { 42 for (size_t i = 0; i < SK_ARRAY_COUNT(kExtensions) - 1; ++i) {
41 gExtString.append(kExtensions[i]); 43 gExtString.append(kExtensions[i]);
42 gExtString.append(" "); 44 gExtString.append(" ");
43 } 45 }
44 gExtString.append(kExtensions[SK_ARRAY_COUNT(kExtensions) - 1]); 46 gExtString.append(kExtensions[SK_ARRAY_COUNT(kExtensions) - 1]);
45 } 47 }
46 gMutex.release(); 48 gMutex.release();
47 return (const GrGLubyte*) gExtString.c_str(); 49 return (const GrGLubyte*) gExtString.c_str();
48 } 50 }
49 } 51 }
50 52
53 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLBindFragDataLocation(GrGLuint program,
54 GrGLuint colorNumber,
55 const GrGLchar* name) {
56 }
57
58 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLBlendBarrier() {
59 }
60
51 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLBlendColor(GrGLclampf red, 61 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLBlendColor(GrGLclampf red,
52 GrGLclampf green, 62 GrGLclampf green,
53 GrGLclampf blue, 63 GrGLclampf blue,
54 GrGLclampf alpha) { 64 GrGLclampf alpha) {
55 } 65 }
56 66
57 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLBindFragDataLocation(GrGLuint program, 67 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLBlendEquation(GrGLenum mode) {
58 GrGLuint colorNumber,
59 const GrGLchar* name) {
60 } 68 }
61 69
62 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLBlendFunc(GrGLenum sfactor, 70 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLBlendFunc(GrGLenum sfactor,
63 GrGLenum dfactor) { 71 GrGLenum dfactor) {
64 } 72 }
65 73
66 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLBufferSubData(GrGLenum target, 74 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLBufferSubData(GrGLenum target,
67 GrGLintptr offset, 75 GrGLintptr offset,
68 GrGLsizeiptr size, 76 GrGLsizeiptr size,
69 const GrGLvoid* data) { 77 const GrGLvoid* data) {
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 static int gUniLocation = 0; 663 static int gUniLocation = 0;
656 return ++gUniLocation; 664 return ++gUniLocation;
657 } 665 }
658 666
659 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLInsertEventMarker(GrGLsizei length, const cha r* marker) { 667 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLInsertEventMarker(GrGLsizei length, const cha r* marker) {
660 } 668 }
661 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPushGroupMarker(GrGLsizei length , const cha r* marker) { 669 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPushGroupMarker(GrGLsizei length , const cha r* marker) {
662 } 670 }
663 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPopGroupMarker() { 671 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPopGroupMarker() {
664 } 672 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698