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

Side by Side Diff: ui/gl/gl_bindings_skia_in_process.cc

Issue 1309743005: command_buffer: Implement EXT_blend_func_extended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: ~ Created 5 years, 3 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 #include "ui/gl/gl_bindings_skia_in_process.h" 6 #include "ui/gl/gl_bindings_skia_in_process.h"
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" 9 #include "third_party/skia/include/gpu/gl/GrGLInterface.h"
10 #include "ui/gl/gl_bindings.h" 10 #include "ui/gl/gl_bindings.h"
(...skipping 21 matching lines...) Expand all
32 GLvoid GR_GL_FUNCTION_TYPE StubGLBindAttribLocation(GLuint program, 32 GLvoid GR_GL_FUNCTION_TYPE StubGLBindAttribLocation(GLuint program,
33 GLuint index, 33 GLuint index,
34 const char* name) { 34 const char* name) {
35 glBindAttribLocation(program, index, name); 35 glBindAttribLocation(program, index, name);
36 } 36 }
37 37
38 GLvoid GR_GL_FUNCTION_TYPE StubGLBindBuffer(GLenum target, GLuint buffer) { 38 GLvoid GR_GL_FUNCTION_TYPE StubGLBindBuffer(GLenum target, GLuint buffer) {
39 glBindBuffer(target, buffer); 39 glBindBuffer(target, buffer);
40 } 40 }
41 41
42 GLvoid GR_GL_FUNCTION_TYPE StubGLBindFragDataLocation(GLuint program,
43 GLuint colorNumber,
44 const GLchar* name) {
45 glBindFragDataLocation(program, colorNumber, name);
46 }
47
48 GLvoid GR_GL_FUNCTION_TYPE 42 GLvoid GR_GL_FUNCTION_TYPE
49 StubGLBindFragDataLocationIndexed(GLuint program, 43 StubGLBindFragDataLocationIndexed(GLuint program,
50 GLuint colorNumber, 44 GLuint colorNumber,
51 GLuint index, 45 GLuint index,
52 const GLchar* name) { 46 const GLchar* name) {
53 glBindFragDataLocationIndexed(program, colorNumber, index, name); 47 glBindFragDataLocationIndexed(program, colorNumber, index, name);
54 } 48 }
55 49
50 GLvoid GR_GL_FUNCTION_TYPE StubGLBindFragDataLocation(GLuint program,
51 GLuint colorNumber,
52 const GLchar* name) {
53 glBindFragDataLocation(program, colorNumber, name);
54 }
55
56 GLvoid GR_GL_FUNCTION_TYPE StubGLBindFramebuffer(GLenum target, 56 GLvoid GR_GL_FUNCTION_TYPE StubGLBindFramebuffer(GLenum target,
57 GLuint framebuffer) { 57 GLuint framebuffer) {
58 glBindFramebufferEXT(target, framebuffer); 58 glBindFramebufferEXT(target, framebuffer);
59 } 59 }
60 60
61 GLvoid GR_GL_FUNCTION_TYPE StubGLBindRenderbuffer(GLenum target, 61 GLvoid GR_GL_FUNCTION_TYPE StubGLBindRenderbuffer(GLenum target,
62 GLuint renderbuffer) { 62 GLuint renderbuffer) {
63 glBindRenderbufferEXT(target, renderbuffer); 63 glBindRenderbufferEXT(target, renderbuffer);
64 } 64 }
65 65
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 StubGLGetString, 843 StubGLGetString,
844 StubGLGetStringi, 844 StubGLGetStringi,
845 StubGLGetIntegerv); 845 StubGLGetIntegerv);
846 846
847 GrGLInterface::Functions* functions = &interface->fFunctions; 847 GrGLInterface::Functions* functions = &interface->fFunctions;
848 functions->fActiveTexture = StubGLActiveTexture; 848 functions->fActiveTexture = StubGLActiveTexture;
849 functions->fAttachShader = StubGLAttachShader; 849 functions->fAttachShader = StubGLAttachShader;
850 functions->fBeginQuery = StubGLBeginQuery; 850 functions->fBeginQuery = StubGLBeginQuery;
851 functions->fBindAttribLocation = StubGLBindAttribLocation; 851 functions->fBindAttribLocation = StubGLBindAttribLocation;
852 functions->fBindBuffer = StubGLBindBuffer; 852 functions->fBindBuffer = StubGLBindBuffer;
853 functions->fBindFragDataLocationIndexed = StubGLBindFragDataLocationIndexed;
853 functions->fBindFragDataLocation = StubGLBindFragDataLocation; 854 functions->fBindFragDataLocation = StubGLBindFragDataLocation;
854 functions->fBindTexture = StubGLBindTexture; 855 functions->fBindTexture = StubGLBindTexture;
855 functions->fBindVertexArray = StubGLBindVertexArray; 856 functions->fBindVertexArray = StubGLBindVertexArray;
856 functions->fBlendBarrier = StubGLBlendBarrier; 857 functions->fBlendBarrier = StubGLBlendBarrier;
857 functions->fBlendColor = StubGLBlendColor; 858 functions->fBlendColor = StubGLBlendColor;
858 functions->fBlendEquation = StubGLBlendEquation; 859 functions->fBlendEquation = StubGLBlendEquation;
859 functions->fBlendFunc = StubGLBlendFunc; 860 functions->fBlendFunc = StubGLBlendFunc;
860 functions->fBufferData = StubGLBufferData; 861 functions->fBufferData = StubGLBufferData;
861 functions->fBufferSubData = StubGLBufferSubData; 862 functions->fBufferSubData = StubGLBufferSubData;
862 functions->fClear = StubGLClear; 863 functions->fClear = StubGLClear;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 StubGLGetFramebufferAttachmentParameteriv; 979 StubGLGetFramebufferAttachmentParameteriv;
979 functions->fGetRenderbufferParameteriv = StubGLGetRenderbufferParameteriv; 980 functions->fGetRenderbufferParameteriv = StubGLGetRenderbufferParameteriv;
980 functions->fRenderbufferStorage = StubGLRenderbufferStorage; 981 functions->fRenderbufferStorage = StubGLRenderbufferStorage;
981 functions->fRenderbufferStorageMultisample = 982 functions->fRenderbufferStorageMultisample =
982 StubGLRenderbufferStorageMultisample; 983 StubGLRenderbufferStorageMultisample;
983 functions->fRenderbufferStorageMultisampleES2EXT = 984 functions->fRenderbufferStorageMultisampleES2EXT =
984 StubGLRenderbufferStorageMultisample; 985 StubGLRenderbufferStorageMultisample;
985 functions->fBlitFramebuffer = StubGLBlitFramebuffer; 986 functions->fBlitFramebuffer = StubGLBlitFramebuffer;
986 functions->fMapBuffer = StubGLMapBuffer; 987 functions->fMapBuffer = StubGLMapBuffer;
987 functions->fUnmapBuffer = StubGLUnmapBuffer; 988 functions->fUnmapBuffer = StubGLUnmapBuffer;
988 functions->fBindFragDataLocationIndexed =
989 StubGLBindFragDataLocationIndexed;
Mark Kilgard 2015/08/28 19:53:25 Am I missing something? Things are moved around i
990 functions->fGetProgramResourceLocation = StubGLGetProgramResourceLocation; 989 functions->fGetProgramResourceLocation = StubGLGetProgramResourceLocation;
991 990
992 return interface; 991 return interface;
993 } 992 }
994 993
995 } // namespace gfx 994 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698